- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2020 01:21 AM
Hi Team,
How to enable edit and new button in Approvers related list (List control) in Change request when state is New ?
Thanks
Raj
Solved! Go to Solution.
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2020 02:40 AM
Out of the box for me both the buttons are omitted
But if you want to show those buttons based on state and type then you can use Omit new condition and Omit edit condition script fields
Those are not on form but you can add those 2 fields from configure form layout
Omit edit condition - true means it will hide; when false it will show
Give sample script below: it should be same in both the places
if(parent.state == '-5' && parent.type == 'normal')
answer = false;
else
answer = true;
Note: This worked for me. When Change is "New" and Type "Normal" it showed me both the buttons
Output: New & Normal buttons shown
Output: New & Emergency; both the buttons hidden
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
07-15-2020 01:41 AM
Please follow the below documentation.
https://docs.servicenow.com/bundle/london-platform-administration/page/administer/list-administratio...