Reset child dropdown whenever master dropdown changes

  • 0
  • 1
  • Question
  • Updated 10 months ago
  • In Progress
  • (Edited)
If Dropdown1 or Dropdown2 changes then make childdropdown1 blank(reset).
Photo of Govind Anand

Govind Anand

  • 124 Points 100 badge 2x thumb

Posted 10 months ago

  • 0
  • 1
Photo of Govind Anand

Govind Anand

  • 124 Points 100 badge 2x thumb
This seems to be simple but i am stuck.... a Newbie though
Photo of Govind Anand

Govind Anand

  • 124 Points 100 badge 2x thumb
Is there a way to capture dropdown change event in form rules?
It’s a non trivial question. I will think about it while I have my breakfast. I’m cycling though Germany now.
Photo of Govind Anand

Govind Anand

  • 124 Points 100 badge 2x thumb
Thanks a lot. Waiting for your response. 
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?
Photo of Govind Anand

Govind Anand

  • 124 Points 100 badge 2x thumb
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.
(Edited)
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.