- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2022 03:42 AM
Hello Everyone!
I have a query, I want to put validation on submit button whenever the user clicks on submit on catalog form I need to check that software details are available on the table or not if yes then return true or return false.
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2022 04:19 AM
var ga = new GlideAjax('HelloWorld'); //this is your script include name
ga.addParam('sysparm_name', 'helloWorld'); //this is your function in script include
ga.addParam('sysparm_user_name', "Bob"); //parameter being passed
ga.getXML(HelloWorldParse);
function HelloWorldParse(response) {
var answer = response.responseXML.documentElement.getAttribute("answer");
alert(answer); } //you cvan return true/false from script include which will be recieved here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2022 04:19 AM
var ga = new GlideAjax('HelloWorld'); //this is your script include name
ga.addParam('sysparm_name', 'helloWorld'); //this is your function in script include
ga.addParam('sysparm_user_name', "Bob"); //parameter being passed
ga.getXML(HelloWorldParse);
function HelloWorldParse(response) {
var answer = response.responseXML.documentElement.getAttribute("answer");
alert(answer); } //you cvan return true/false from script include which will be recieved here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2022 03:49 AM
Hi,
I'm not understood clearly. You are submitting the request in Service Portal using catalog item and you have a field/variable called 'Software' and You are looking the field should be mandate to submit the catalog item.
If yes, you can make the field as mandate using catalog UI Policies.
Please mark as correct answer if it helped.
Regards,
Suresh.
Suresh.