Announcement

Collapse
No announcement yet.

Enum list that changes another Emum list

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

  • Enum list that changes another Emum list

    Hi,

    I have a question about Enum list.

    I create in Administration-> Entity Manager -> Account-> Fields a new Enum with 2 or more options like this example :
    Computer
    Other

    I want to create below another list which depends on the choice of the first list (a subtype)
    If the user chooses Computer, he will have for example in the second list the choice between :
    Laptop
    Office
    Tablet

    But if the user chooses Other , he will have for example in the second list the choice between :
    Paper
    Dashboard
    ...

    Is it possible in EspoCRM ?

    Thank you

  • #2
    Yes I think it is possible, from dynamic logic of the subtype field
    CEO of Eblasoft
    EspoCRM Expert since 2014
    Full Stack Web Developer since 2008
    Creator of Numerous Successful Extensions & Projects​

    Comment


    • #3
      It works. Thank you very much. I've been trying to figure out how to do this for several hours.

      If someone has the same question, here's how to do it.

      Create first Enum in Administration->Entity Manager-> Account -> Fields
      Example my field name : Test1
      Value : Computer, Other


      Create Second Enum in Administration->Entity Manager-> Account -> Fields
      Example my field name : Test2
      Value : Laptop, Office,Tablet, Paper, Dashboard

      in Dynamic Logic, Conditional options :
      Click on +
      Choose what you want to see (example Laptop,Office,Tablet)
      Click on Edit
      Click on AND+
      Choose Field
      Choose your first Enum (Test1) . Choose IN Computer

      Click on +
      Choose what you want to see (example Paper, Dashboard)
      Click on Edit
      Click on AND+
      Choose Field
      Choose your first Enum (Test1) . Choose IN Other

      Save
      Don't forget to add your two enum in Layout Manager

      Comment


      • eymen-elkum
        eymen-elkum commented
        Editing a comment
        very good ...

      • telecastg
        telecastg commented
        Editing a comment
        "If someone has the same question, here's how to do it."

        THANK YOU for posting the answer
    Working...
    X