AnsweredAssumed Answered

Programmatically close Widget on Click - WAB DE

Question asked by Wilcox.Jeff on Feb 6, 2018
Latest reply on Feb 7, 2018 by Wilcox.Jeff

Attempting to use custom code in the Smart Editor widget, so that save button has an onclick that closes the editor entirely (instead of bringing it back to template) after save and would greatly appreciate a little direction on where it might go (not terribly familiar with JS), I am working in the Smart Editor Widget.js file and tried pasting in

 

PanelManager.getInstance().closePanel(widgetid + ‘_panel’);

 

I included the Define and the Function, but it inst working where I've been placing it. Have I botched the syntax?

 

Does anyone have a sample I could refer to?

Outcomes