I have 2 dropdowns type and courses type will be premium, free and courses for premium java, c++, and also for free also I have java , python like this . i need to display all the courses when in default and when type selected as premium it will only show that category courses. but java is in both category it displaying 2 times by default . In db they have mapped with thier unique type ids only. I tried with union but choice values and choice values length varies because of that. Can anyone help me ?
Discussion posts and replies are publicly visible
Would it be possible to create two dropdowns for courses, and show one of them depending on the type?
Are you are saying like one dropdown named courses for premium, other one is courses for free. I am not sure we can do like that.
That's the idea. Using showWhen, you can hide/display the second dropDown based on the selected type.
But what I want is to display all the unique courses by default when no type is selected.
OK, so this is not about a consecutive selection, but the first dropdown is meant to filter the second.
You could use the dropDownByIndex. You store your actual records to a local variable and derive the choice labels from them. When the user makes a selection, you get the index of the selected item.