Setting complete record to readonly once it has been saved

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1606

    Setting complete record to readonly once it has been saved

    Is it possible to set a record to readonly, when it has been created?
    I have records, where I pull values from another entity by relationship. These values, which I pull from there, may change from time to time in the related entity, but I want avoid, that in records before the changings happened, the values in those records would not be possible to be altered, not even by formula.
    For newer records after the changings it should be possible to use the newer values.
  • yuri
    Member
    • Mar 2014
    • 8454

    #2
    You can check 'Read-Only-After-Create' for every field.

    > not even by formula

    It's not possible to restrict saving by formula,
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • shalmaxb
      Senior Member
      • Mar 2015
      • 1606

      #3
      Thank you, I guessed that from my testing. And I found a solution, that works. The values, that I pull from the related entity by formula I put in a ifThen condition with the function entity\is new(), what causes, that the formula is only executed, when the record is created but not when it is updated and so it protects already before created records. Result is exactly, what I wanted.

      Comment

      Working...