- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2016 07:10 AM
Hi All,
Currently I am using Helsinki version of SNOW, in this version we have a Advanced list control with scripts.
When I am trying to omit a New button of a Related List using script for a Closed state condition, it is hiding for closed state as well as rest of the states.
The thing is, it is hiding in each state otherwise it is visible in each state.
I am using below script, please see the attached screen.
Please if you get my issue, let me know the solution.
Thanks,
Vikas Ambulgekar
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
-
Team Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2016 10:07 AM
I think you need to give answer; at the end. Like this: (From Helsinki Product Documentation: Advanced list control with scripts )
var answer ;
if (current.u_state=='Closed') { //Do not remove the 'New' button
answer = false ;
}
else { //Remove the 'New' button
answer = true ;
}
answer ;
If that doesn't work, use parent object in place of current like said in the doc. I'm not an expert but this is how I would try.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2019 04:10 AM
I want to remove the new button from one module but keep it for other 2 modules.
how should i do it?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2019 02:19 AM
Hello,
You can add lint to the existing condition on New UI Action for that particular able
<condition>&&(RP.getParameterValue('sysparm_userpref_module') !=sys_id of Module)
Regards,
Jagadeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2019 06:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2021 11:43 AM
where do you go in order to see this screen? the screen that has the check box, "Omit New Button".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2025 04:45 PM
In the Continual Improvement Management module, we can create new CIM tasks in the "Review" state. This seems to be an oversight by ServiceNow. We may be able to use above method to remove the "New" button in the Review state. Just thought I should let everyone know.