Hello Again All,
I am using a modern form with modern dropdowns. I want to implement cascading dropdowns as I have in classic forms with classic dropdowns, but they are not working as I had hoped, or as they did with classic dropdowns.
Within the form I have two dropdowns, one for "Track" and the other for "Request Status".
Track has two items: ["Local","GPR"]
Request Status items is:
Switch(
drpLocalReviewTrack.Selected.Value,
"Local",
[
"Pending Local Review",
"Area Approved",
"Queued",
"Cancelled",
"On Hold"
],
"GPR",
[
"Pending GPR Review",
"GPR Approved",
"Queued",
"Cancelled",
"On Hold"
]
)
So there are three possibilities that overlap and two that are unique for each track option.
The defaultselected items come from the fields of the data source.
What I want to have happen, for example, is if the original values when the form is loaded show:
Track: Local
Request Status: Area Approved
And the track is then changed to "GPR", I would like the Request Status dropdown to show blank (as "Area Approved" is not a valid item when Track is "GPR", and the available Request Status option should show only those valid for when track is "GPR".
What is happening instead is that Request Status continues to show "Area Approved" and the available items in the Request Status dropdown show those items for "GPR" and also show "Area Approved" as an option.
Is this a bug? Is there away around this issue? Does it have to do with the DefaultSelectedItems? Please help!