UI Page not running processing script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2015 01:43 PM
In my UI Page I've stuck this line to create the ok and cancel buttons:
<g:dialog_buttons_ok_cancel ok="return makeChanges()" ok_type="button" cancel_type="button" />
I then have this in the client script window:
function makeChanges() {
var service = gel("service").value;
if (!service) {
alert("Please select a service to update.");
return false;
}
GlideDialogWindow.get().destroy(); //Close the dialog window
return true;
}
When I hit OK, the window just goes away. The code that I have in the Processing script never runs. Is it because I listed an "ok" callback? Basically I need to make sure the input is OK and then if it is do the work server side.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2015 02:50 PM
Hi Adam,
You find any fix for this ? I am having the same issue. Let me know if you found any fix for this.
Thanks,
Sai.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2017 07:37 AM
Hi Scott,
The properties tag "ok_type="button" cancel_type="button" are overriding the standard button's behaviour. Removing them the processing script will run.
I wont need the GlideDialogWindow.get().destroy();, neither.
Regards