If any catalog item variable is empty in order guide user should not submit the request.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2023 11:46 PM
I have a order guide which has 3 catalog items and each catalog items has 1 variable.
I want to restrict user from submitting the request if any of the catalog item variable is empty.
I want to achieve this without making any variable mandatory.How to achieve this?Can anyone help?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2023 12:37 AM
Can you try onSubmit client script on each catalog item.
var test =g_form.getValue("variable_name");
if(test ==''){
return false;
}
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2023 12:53 AM
this is working only when we are on that catalog item in order guide but if that variable is empty and if we go to next catalog item then it is not working.