Discussions

Expand all | Collapse all

Reset child dropdown whenever master dropdown changes

  • 1.  Reset child dropdown whenever master dropdown changes

    Posted 08-30-2018 06:32
    If Dropdown1 or Dropdown2 changes then make childdropdown1 blank(reset).


  • 2.  RE: Reset child dropdown whenever master dropdown changes

    Posted 08-30-2018 06:59
    This seems to be simple but i am stuck.... a Newbie though


  • 3.  RE: Reset child dropdown whenever master dropdown changes

    Posted 08-30-2018 07:28
    Is there a way to capture dropdown change event in form rules?


  • 4.  RE: Reset child dropdown whenever master dropdown changes

    Posted 08-30-2018 07:30
    It�s a non trivial question. I will think about it while I have my breakfast. I�m cycling though Germany now.


  • 5.  RE: Reset child dropdown whenever master dropdown changes

    Posted 08-30-2018 07:32
    Thanks a lot. Waiting for your response. 


  • 6.  RE: Reset child dropdown whenever master dropdown changes

    Posted 08-30-2018 08:59
    Ok, so I will give an answer based in the assumption that you have a Conditional drop down, and you want to ensure that the child selected matches the parent, and the user does not reset the the parent and forget to reselect the child.

    If that is the case, then. You can look up the values for the Drop down 1 and the Drop down 2 down to the child record and have 5em Kn your firm in a hidden earth section,

    Then have a form rul that checks if there is a mismatch and if so, reset the child selection to blank.

    Was my assumption correct about your use case?


  • 7.  RE: Reset child dropdown whenever master dropdown changes

    Posted 08-30-2018 09:30
    Thanks a lot for your response. My case is a bit different one. I have a ParentDropdown with values Val1, Val2, Val3.  There is a ChildDropdown with value YES/NO . If YES is opted then a required TEXT field appears and if NO then it disappears. 
    Rule 1: If ChildDropdown is YES , make TEXT field require and SHOW it.(Otherwise Not)
    Rule 2: If ParentDropdown is Val1 or Val3, then ChildDropdown appears.(For Val2 its not required so disappears)

    Problem : if User selects Val1 then YES --> TEXT field appears and required. But if user makes the ParentDropdown as Val2 then ChildDropdown disappears but the TEXT field remains because the Value in Child dropdown is still YES , only its hidden.


  • 8.  RE: Reset child dropdown whenever master dropdown changes

    Posted 08-30-2018 11:46
    I did not read your post completely to understand it in detail, but it seems to me that if you have s rule to hide a field, then that same rule can change a field to blank.