Forum Discussion

SowmyaK98's avatar
SowmyaK98
Ideator III
5 years ago

Disable Edit button

Hi Team,

How can I disable Edit button in toolbar once document state reaches to Released? Is it possible to control it using permissions or do we need to write any custom method - OnFormPopulated event.

Please guide me.

Thanks,

Sowmya

7 Replies

  • We can write custom method to achieve it or we can use state permissions. Also we can use Not lockable property as well

    • SowmyaK98's avatar
      SowmyaK98
      Ideator III

      Hi Sunil,

      I have tried both options, making Released state as Not Lockable and also added State permission for Released state in lifecycle. But none of them are making my Edit button disabled.. it needs to be grayed out as soon as document reaches Released state.

      For state permission, we need to disable update access right? I have done it but seems to be not working.

      Any other way to achieve this?

      Thanks,

      Sowmya

  • Hi Sowmya

    In Document lifecycle, on Released state, make it as not lockable. This will prevent user from locking the released item. You can also create state wise permission and add on the life cycle state.

    • SowmyaK98's avatar
      SowmyaK98
      Ideator III

      Hi Gopi,

      I have tried both options, making Released state as Not Lockable and also added State permission for Released state in lifecycle. But none of them are making my Edit button disabled.. it needs to be grayed out as soon as document reaches Released state.

      For state permission, we need to disable update access right? I have done it but seems to be not working.

      Any other way to achieve this?

      Thanks,

      Sowmya

      • Gopikrishnan's avatar
        Gopikrishnan
        Accelerator II

        Hi Sowmya

        Can you share the permission added to the released state of Document life cycle. Also confirm what is the user account you are using to lock the item. If it is a normal user, check the membership of that user.