Limit edit button on reference list to not show up for incident

samadam
Kilo Sage

I am trying add a condition to not show edit button when the reference is from incident. I tried to use parent.sys_class_name='incident' in the Omit Edit condition. Doesn't seem to be working. Any ideas on how to access the parent type?

6 REPLIES 6

samadam_0-1729736058718.pngsamadam_1-1729736099204.png

Still the new button show up. I am trying this in PDI. Using the Assigned to field when the form opens I do not want to show New button. I can get it to work for all records but if I want to restrict this only on the assigned to field on incident form it doesn't.

samadam
Kilo Sage

I figured it out partaially.  I can limit for a particular field using the following:

RP.getParameterValue('sysparm_view') == 'sys_ref_list' && RP.getParameterValue('sysparm_target') =='incident.assigned_to'. Unsure on why I cannot access the parent