Readonly field condition

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

    #1

    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
    EspoCRM product developer
    • Mar 2014
    • 9616

    #2
    I doubt there's a bug. Maybe status is not "New" when you create but empty.

    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
    • 598

    #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
      EspoCRM product developer
      • Mar 2014
      • 9616

      #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.

      Comment

      • dimyy
        Active Community Member
        • Jun 2018
        • 598

        #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
          EspoCRM product developer
          • Mar 2014
          • 9616

          #6
          Inline edit is not fully compatible with dynamic logic. I recommend disabling it.

          Comment

          Working...