Is there a way to hide a state until a condition is met on the incident form?

Navaneeth1
Tera Guru

I'd like to hide the state closed until the ticket is resolved. Is there way to hide this choice until the condition is met?

Thank you in advance!

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Navaneeth1 

 

https://www.servicenow.com/community/developer-forum/hide-display-certain-values-of-the-state-field-...

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

if(<condition>)
{
g_form.removeOption('state','3'); //here the name the field is state and 3 is the value of the closed choice option.
}

you can try somehting like belpw in an onload client script

 

-Anurag