Readonly field condition

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dimyy
    Active Community Member
    • Jun 2018
    • 569

    Readonly field condition

    I try to make status field read only after initial status.

    In condition section i set readonly condition to "status <> New"

    But when I try modify status field I can't. Front does not recognize old and new value.
  • yuri
    Member
    • Mar 2014
    • 8624

    #2
    I doubt there's a bug. Maybe status is not "New" when you create but empty.
    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


    • dimyy
      dimyy commented
      Editing a comment
      "New" is default value. I checked the value in the database and it is "New"
      Last edited by dimyy; 11-23-2020, 05:29 PM.
  • dimyy
    Active Community Member
    • Jun 2018
    • 569

    #3
    I also attached field config

    Espo version: Version 6.0.3
    Attached Files
    Last edited by dimyy; 11-23-2020, 05:36 PM.

    Comment

    • yuri
      Member
      • Mar 2014
      • 8624

      #4
      I checked and it worked as expected. The default value is 'New'. On create it allowed me to change status to another, then the field instantly became read-only. When edit existing record it's read-only if status is not New. It's how it's supposed to work.

      It's not clear for me from your post what is the problem.
      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

      • dimyy
        Active Community Member
        • Jun 2018
        • 569

        #5
        I see where is problem.

        All ok if I edit full record. But if I try in-line edit I can't set status for existing record.

        Screen cast: https://cloud.mail.ru/public/4uVY/2g7fRGqp2

        Comment

        • yuri
          Member
          • Mar 2014
          • 8624

          #6
          Inline edit is not fully compatible with dynamic logic. I recommend disabling it.
          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

          Working...