Control List control New buuton on the record level
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 10:01 AM
i have a requirement to remove the new button when opening reference fields on the incident form but this is effecting the main tables as well when i select the omit new button for assigned to field is there a way to limit to the record level
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 10:31 AM
Hi Thomas42,
right click on the header of groups configure -> list control and check omit new button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 10:40 AM
that cause it to take affect globally i just want it to omit on the form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 10:42 AM - edited 11-12-2024 10:46 AM
Hi @ServNowDev ,
But if you want to customize the global new button then you can add this condition to it along with the exsisting one
!(RP.getParameterValue('sysparm_view')=='sys_ref_list' && RP.getParameterValue('sys_target')=='your_table_name')
To hide the 'New' button for the sys_ref_list view, configure the list control and add the above scriot into the 'Omit New Condition’
RP refers to the page's Render Properties and amongst other things, provides access to the URL parameters.
Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand