Variable mandatory On Saving form in SCTASK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2024 02:23 AM
Hi Everyone,
I am trying to set a variable mandatory in a SCTASK of a catalog item.
The condition is the SCTASK state.
It works fine if task state is closed complete, the task cannot get closed if the variable is not filled.
However I have to set the variable mandatory if task state is: Pending.
I used a UI Policy with setMandatory in the script.
The variable becomes mandatory in the form, but it is still possible to save it without populating the variable.
Basically the red star (for mandatory) is showing up when I select "Pending", but it disappears when I save the form.
Anyone might have an idea on how to fix this ?
Thank you very much in advance for your kind support.
Kr,
Sylvain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2024 03:18 AM - edited 10-16-2024 03:28 AM
Hi @Sylvain12 ,
I see no issues here please refer screenshots attached.
If you are still facing issues please share screenshot of UI policy if possible.
Please check and Mark Helpful and Correct if it really helps you.
Regards,
Mayur Shardul
ServiceNow Rising Star 2024
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2024 03:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2024 04:31 AM
Hello @Mayur2109
Thank you very much for your prompt reply.
On your screenshot n°2, did you try to click on "Update" ? For me it is updating without alerting about the mandatory variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2024 05:35 AM