Hello Blitz,

To apply conditions at the script level and ensure related links are not hidden based on specific states, you need to utilize the conditions field provided in the ServiceNow UI action. This approach allows you to specify the criteria under which related links should be displayed or hidden, ensuring that the links remain visible or become hidden according to the defined states. By configuring the conditions field appropriately, you can achieve the desired behavior for related links based on the specific conditions you have set.