Layout Rule to hide Attachments section

To prevent people from adding attachments to closed records I wrote a layout rule that hides the attachments section when the record is closed.

I have been having trouble with using the lifecycle state to build the rule. Here is the error I get:

Data type "LifecycleState" not supported for the left hand side of "=".

As a workaround, I am using the closed date field with this logic:


It's not pretty but it works. Support just mentioned that it isn't currently possible from the UI but it is from the API. I'm asking the forum if anyone has any other tips on how to do this.

Thanks in advance!


1 comment

  • Avatar
    Dan Robinson

    I did hear back from support on this. Converting the state field value to text and comparing to the state label worked.



Please sign in to leave a comment.