Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2019 07:20 AM
I have a use case in UI action if the fields are empty we need to abort the action and display mandatory message ,, we already has UI policies for making mandatory for those fields , but when i click on UI action it is ignoring the mandatory conditions
function close(){
var dialogClass = window.GlideModal ? GlideModal : GlideDialogWindow;
var gDialog = new dialogClass('close2_record');
gDialog.setTitle('Publish ' + g_form.getValue('display_name') + ' to record Catalog');
gDialog.setPreference('sysparm_sys_id', g_form.getValue());
}
Solved! Go to Solution.