GlideModal - processing script not executed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2018 01:06 PM
Hi community,
I am in a scoped application.
When I click on my UI Action, I have a popup which displays a UI Page which displays a Reference field :
But when I select something and clicks 'OK', the 'processing script' of the UI Page is not executed.
The important thing is that I use a GlideModal.
Note that the processing script executes if I use a GlideDialogWindow or a GlideModalForm....
See my UI Page code below :
HTML
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<style type="text/css">
div {
margin: 5px 20px 5px 20px;
}
.buttons {
margin-top: 15px;
text-align: right;
}
</style>
<g:ui_form>
<div>
<g:ui_reference name="businessSector" id="businessSector" table="x_desgr_gcourr_secteurs_d_affaires"/>
</div>
<div class="buttons">
<g:dialog_buttons_ok_cancel ok="return onSubmit();" cancel="return onCancel();"/>
</div>
</g:ui_form>
</j:jelly>
Client script
function onCancel() {
GlideModal.get().destroy();
return false;
}
function onSubmit() {
var businessSectorSelected = gel("businessSector").value;
GlideModal.get().destroy();
return true;
}
Processing script
gs.info('processing script');
Do you know why it doesn't execute ?
Do you have a work-around ?
Alexis
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2020 09:40 AM
Refer this UI page - https://<your-instance>.service-now.com/nav_to.do?uri=sys_ui_page.do?sys_id=e5d7b7073723100044e0bfc8...
This UI page will give you an idea of how submit happens on a form and the values are accessed in the processing script.
Thanks, Shiva