Visibility of all states in in progress before saving the incident form.

Atchutaram
Tera Contributor

Hi, 

So i have a requirement to make On hold and resolved state hide in when incident is in new state. and when incident is in in-progress state all states should be visible. So i have used a UI policy like when state is new, in script g_form.removeOption('state', '6'); 

g_form.removeOption('state', '3'); 

 

but when an incident is already in progress and we can see all the states as expected, when we change the state to new, only In progress in visible. Since we didn't save the form it should show all the states, even if state is in new. How can i stop this happening!

2 REPLIES 2

tharun_kumar_m
Mega Guru

Hi Atchutaram,

 

For your requirement you can use onSubmit client script which will run only after the form is saved/updated.

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumbs up.

 

Best regards,

Tharun Kumar

Vijendra Sainy
Giga Guru

Remove the option in onLoad client script. That way the option is removed once the form load and it stays as it is. 

 

-Vijendra