Visibility of all states in in progress before saving the incident form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2024 12:34 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2024 01:19 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2024 01:24 AM
Remove the option in onLoad client script. That way the option is removed once the form load and it stays as it is.
-Vijendra