- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 09:25 PM
I am creating 1 record producer to Incident table. There are some variable in this catalog.
What I need to do is to create UI Policy if Incident state is in Resolved, the variable field must be mandatory to fill in.
I cannot set the condition on Incident state, I could see only variable field. Anyone can help?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 10:42 PM
Hi,
you have not read my earlier response.
You need to create normal client script on incident table and not catalog client script and then use script I shared
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 09:32 PM
Hi Bird,
I suppose that the Incident will be created once the record producer is submitted right? and the state of incident will not be Resolved until it is manually done.
Can you please confirm if you are pushing variable value on incident (any field) and that needs to be mandatory?
Hope this helps.
If my answer resolves your issue, please mark my answer as ✅ Correct & Helpful based on the validations.
Thank You!
Regards,
Kailash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 10:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 10:40 PM
Hi Bird,
have you tried this way.
you can use below Sample UI policy and change the UI action field name according to your use.
Hope it helps
Mark it Helpful and Correct.
Thanks
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 09:37 PM
Hi,
you can use onChange normal client script on incident table and make variable mandatory when state changes to Resolved
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader