Hello,
I am using the following formula to set a variable that is used in the item property of a gallery, however the following code requires me to manually add a case for a new client
Switch(
ClientDropDown.SelectedText.Value;
Text("CLIENT_1");
Set(varClient;CLIENT_1);
Text("CLIENT_2");
Set(varClient;CLIENT_2)
Text("CLIENT_N");
Set(varClient;CLIENT_N)
)
I have been trying to set the variable directly from the selected value (therefore avoiding having to make manual changes if a new client gets added)
for example:
Set(varClient;ClientDropDown.SelectedText.Value)
This will set the variable, however it is text and the variable can then not be used as the item source.
Can anyone suggest a way I can get the functionality of the above switch code but without having to hardcode the clients?
Thanks in advance