How to make related list "Affected locations" read only on incident form

robinpaul
Kilo Contributor

Hi All,

How to make related list called "Affected locations" should be Read only on incident form(for ess view),when the incident state is resolved/closed.

Any help would be appreciated . Thanks in Advance.

10 REPLIES 10

Alikutty A
Tera Sage

Hi Robin,



What are you trying to achieve? When you say read-only, do you want to hide the New or Edit button on the related list?



For this you will have to configure list control condition via script.



Thanks


Please Hit like, Helpful or Correct depending on the impact of the response


robinpaul
Kilo Contributor

Thanks for reply.   I'm Trying to hide the Edit button after the incident state is resolved/closed.


Try this script in omit edit condition


answer = (parent.state == 'resolved_state_value')   || (parent.state == closed_state_value' );


The List control will be global change and not sure if you can hide it specific to the self service view as required.



Thanks


Please Hit like, Helpful or Correct depending on the impact of the response