onButtonDown = function(event) { event.result = [ ["save", "enabled", false], ["Pass", "enabled", false], ["save", "label", waitingFrase()] ]; } onButtonClick = function(event){ setup.password = event.currentValues.Pass; var appDir = fw.userJsCommandsDir + "/my_commands"; var file = appDir+"/buildUp.jsf"; fw.runScript(file); } panelJSON = { events: { onFwObjectSettingChange: function(event) { console.log(":::: onFwObjectSettingChange"); }, onFwActiveToolChange: function(event) { console.log(":::: onFwActiveToolChange"); } }, children: [ { TextInput: { name: "Pass", toolTip: "Choose a password", text: "clientpass", style: { fontWeight: "bold", fontSize: 15, } } }, { Button: { label: "Build Presentationx", name:"save", events: { buttonDown: onButtonDown, click: onButtonClick } } } ] }; fwlib.panel.register(panelJSON);