Announcement

Collapse
No announcement yet.

Incorrect operation of dynamicLogic in a field of the List type

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Incorrect operation of dynamicLogic in a field of the List type

    This is a duplicate topic https://forum.espocrm.com/forum/gene...-the-list-type . I don't understand why he was moved to general.

    I add a conditional option to display a list of values. An error occurs when editing this field on the entity page. The value is set incorrectly. The list of values ​​is not updated according to the condition.
    I reproduce thie error on public demo (demo.espocrm.com) https://drive.google.com/file/d/1gDl...ew?usp=sharing
    Used the following conditions
    Click image for larger version

Name:	fetch?id=87796.png
Views:	305
Size:	62.2 KB
ID:	87904


  • #2
    The initial post didn't have clear steps to reproduce and description of the problem.

    I'm not sure it should be treated as a bug. You need to include current values to option lists.

    Comment


    • #3
      Thank you. The issue with value jumping has been resolved.
      But there is one more nuance. When using a condition on the current field, the list of values ​​changes before the entity is saved.​

      PHP Code:
      "options": {
           
      "status": [
                {
                    
      "optionList": [
                           
      "DeepLearn",
                            
      "Assigned",
                            
      "Pending",
                            
      "Response",
                            
      "Closed",
                            
      "Rejected",
                            
      "Duplicate"
                     
      ],
                    
      "conditionGroup": [
                         {
                             
      "type""equals",
                             
      "attribute""status",
                             
      "value""New"
                        
      }
                    ]
                },
            ]
      }
      ​ 
      Thank you. The issue with value jumping has been resolved.
      But there is one more nuance. When using a condition on the current field, the list of values ​​changes before the entity is saved.
      There may be a situation when selecting a field value will not return to the original list without refreshing the page.​
      Last edited by v_pavlenko; 02-13-2023, 06:59 AM.

      Comment

      Working...
      X