how to lock down a record?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jamie
    Senior Member
    • Aug 2025
    • 215

    #1

    how to lock down a record?

    I need to prevent editing on a record after a condition is met, say status -> closed

    i got recommended this, however, if the function exists i can't find any documentation on it, and it doesn't work

    ifThen( entity\attribute('status') == 'Closed', entity\setReadOnly(true) )

    thanks,
  • Noah Kal
    Junior Member
    • Jan 2026
    • 2

    #2
    HI jamie



    This addition might be useful for your request.



    It allows locking a record using an existing Boolean field.


    Secure your records with Ebla Lock. Lock editing via any boolean field and control access through specific role-based permissions.

    Comment

    • yuri
      EspoCRM product developer
      • Mar 2014
      • 9603

      #3
      The record locking is going to be implemented in future.

      Comment

      • rabii
        Active Community Member
        • Jun 2016
        • 1369

        #4
        Originally posted by jamie
        I need to prevent editing on a record after a condition is met, say status -> closed

        i got recommended this, however, if the function exists i can't find any documentation on it, and it doesn't work

        ifThen( entity\attribute('status') == 'Closed', entity\setReadOnly(true) )

        thanks,
        you can use Dynamic Handler - it is easy to implement and would allow you to set fields as read only

        Rabii
        EspoCRM & Web Dev

        🔗 See what I’ve built for EspoCRM

        Comment

        Working...