Hey Guys,
I've come back around on this problem many times now so thought I'd just ask.
I have a patched form control that progresses through multiple parts of a data source. I'm trying to get a dropdown in the form control to update a global variable, using a simple Set(dummyVar, "test") on the dropdown field's OnChange method but despite testing everything I can think of, it never seems to update the variable.
I've tried:
1: OnChange
2: OnSelect
3: UpdateContext()
4: Set()
But nothing seems to be able to get information out of the form control and into the global scope state. Is my approach wrong here? I can't seem to get the OnSelect or OnChange methods on the form dropdown to do literally anything....ever and it is incredibly frustrating.
Ideally I would have the following code on the OnSelect method for the form control dropdown:
If(
IsMatch(DropdownValue.Selected.Value,"type 3 for something"),
Set(
variant, "v3"
)
)
But even without the condition, a naked Set(var, "test") doesn't do anything either when I choose something in the dropdown.
Any suggestions would be appreciated.