How can we disable SUBMIT button on Service portal and ITIL view when we select particular value on catalog variable on a catalog item

Venkat141
Tera Contributor

How can we disable submit button on Service Portal view as well as ITIL view when we select Particular value under catalog variable on the catalog form

 

@Ankur Bawiskar 

@Saurav 

@shloke04 

@Anil Lande 

@Maik Skoddow 

@Jaspal Singh 

@Sandeep Dutta 

@Chandra Sekhar Maganty 

@Musab Rasheed

12 REPLIES 12

@Pavan Ramireddy 

Did you get a chance to check the above link which has script to show/hide?

Regards
Ankur

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

shloke04
Kilo Patron

Also to add  just check the checkbox named as "Apply to Requested Item" and "Apply to catalog task" and this script will be applied on ITIL Native view as well as shown below:

find_real_file.png

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

shloke04
Kilo Patron

Hi @Pavan Ramireddy 

Let  me know if you have a follow up query but the solution suggested by me will work for you and other member has also propsosed similar thing which I have posted initally here.

Regards,

Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hello @shloke04 ,

 

not working. please see below snap

find_real_file.png

Hi,

getReference with callback might not work as by the time the callback method is invoked the submission might happen

why not make the script run onChange of that select_group variable and show and clear the message and make it mandatory so that it allows submission only when value is valid

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader