How can stop submitting the catalog form when i select the NO

nikhitha24
Tera Guru

Hi Team,

 

Please help me on the below requirement.

In the below screen when i select the FAQ sheet referred to "NO". i don't want to submit the form.

Please help me on this

nikhitha24_0-1694110557258.png

 

1 ACCEPTED SOLUTION

Vishal Birajdar
Giga Sage

Hi @nikhitha24 

 

You should write onSubmit script as below :

// you can use backed end name of your variables

if(g_form.getValue('faq') == 'No'){

return false;

}

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

View solution in original post

7 REPLIES 7

Avinash Uskamal
Tera Contributor

Write catalog client onsubmit script
script.PNG

 

 

 

 

Capture.PNG

make sure  using same value in script

 

 

Avinash Uskamalla

Servicenow Developer

Avinash Uskamal
Tera Contributor

 

write onSubmit script
script.PNG

 

 

 

 

 

 

 

 

 

 

Capture.PNG

 

 

 

 

 

 

 

 

 

make sure use of same Value in script.

 

Avinash Uskamalla 

Avinash Uskamal
Tera Contributor

write catalog  onsubmit client script

script.PNGCapture.PNG