Control List control New buuton on the record level

ServNowDev
Tera Guru

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

 

Thomas42_0-1731434446830.png

 

3 REPLIES 3

Kalasei Yauheni
Tera Contributor

Hi Thomas42,

right click on the header of groups configure -> list control and check omit new button

that cause it to take affect globally i just want it to omit on the form

Anand Kumar P
Giga Patron
Giga Patron

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