Hi,
Turning to the forum for the first time. I hope that you guys can help me.
I am using the newest version of studio and form.activities 23.10.5
I have a dropdown that is the parent to another dropdown. So basically I want to populate the second dropdown depending on the selection in the first one.
To begin with, I have it working, almost…
I have a list which is the input to the first dropdown.
The second dropdown lies within a dictionary where the “Key” is the value from dropdown 1. And the values is a list of strings.
This value updates upon selection in dropdown 1, so no choices to start with.
There are, as far as I understand, several ways of doing this.
My first approach was to use the new event triggers to the first dropdown, so that when a selection was made in dropdown 1, it triggered a workflow that then returns a list from my dictionary based on the key (selection).
It worked fine aside from one thing:
The values from the second dropdown does not reset upon changing to another value in dropdown 1. So when I change the selection in dropdown 1, the values that is associated with the first selection still remains.
Meaning that you can choose from an option in dropdown 2 that is not associated with that value(key).
So the question is, how do I make it reset the values when I change option in dropdown 1?
Prior to the new forms version, there also seems to be options to pass the entire dictionary to the forms object. And if you name the in-arguments correctly like “_parent” and so on. This should automatically make it so that the dropdowns are related. But that does not seem to be the case in the new version?
Correct me if I’m wrong.
Really appreciate all the help I can get
Best regards