onSubmit client script submission should wait till the UI page selection/submission.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2018 06:54 AM
Hello,
We have a onSubmit client script which calls a UI page(slushbucket) for selection of groups to be added in approvals.
The issue we are facing is, when user submits the form, the client script runs and the UI page is shown. But before user can select the groups and click OK, the form gets saved and group selection is not captured.
Already tried with return to FALSE, but in this scenario the modifications on the form will not be taken into consideration even the approvals records are added.
Here is the sample of the code.
var ans = confirm("Please confirm if you want to add additional approvers");
if(ans == false){
return false;
}else{
var dialog = new GlideDialogWindow('somename');
dialog.setTitle('Select additional approvals');
dialog.setSize(500,500);
dialog.render();
}
}
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2018 10:29 PM