- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 09:39 AM
Hello,
We need your guidance or recommendations how to prevent users from creating a standard change task if they don't fill out "Justification" and Risk and Impact analysis" fields. Thank you
Here is the screenshot of Standard Change, Planning Tab:
I was writing script on the Omit new button, but that did not works:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 01:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 03:30 PM
You'll want to edit the list control for the related list by right licking on one of the column headers and selecting configure. List control should give you the options you are looking for.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 10:13 AM
Can you try using onSubmit client script on standard change task.
You can use logic like below :
Check if parent record have filled two fields as mentioned by you.
If its not filled abort the submission.
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 10:41 AM
Thank you for your suggestion @Vishal Birajdar
I would show the "New" button only state is in "Implement" and "Review".
I have tried below code, but it is not working. Could you or someone help with the script, because I'm very weak at coding javascript. Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 11:35 AM
Hello @Lisa Goldman ,
create a UI Policy and set those 2 fields mandatory it will not allow you save the record until mandatory fields have some value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2023 12:02 PM
Hi @Deepak89
We used UI Policy to make those fields mandatory. We trying to hide the Change Task New button if not in Implement and review state.