Hello ,
I am new to toggle button, I have a dropdown which has these five different values(1,2,3,4,5). the condition is when i switch on the toggle the values should change to(100,200,300.400,500) respectively automatically . For example if i select 1 in dropdown and change the toggle the value should automatically change to 100 so and so forth. How can i do that in power app?
all advices are welcome
Thank you
Thanks . it worked
Hi @Anonym_unknown ,
Please try:
1\Set Toggle1
OnCheck
Set(DropDownValue,Dropdown1.Selected.Value*100)
OnUncheck
Set(DropDownValue,Dropdown1.Selected.Value/100)
2\Set Dropdown1
Items
If(DropDownValue>=100,[100,200,300,400,500],[1,2,3,4,5])
Default
DropDownValue
Best Regards,
Bof
When i select any number it is only giving me 100 as a value. For example.
Selected 3 in the dropdown and switch the toggle gave me 100. how will i get 300?
The reason is you had to set dropdown control to the list of values:[1,2,3,4,5] forgot to mention that also you need to replace the if condition with property name.
Hope this was helpful
Hi @Anonym_unknown ,
You could set the dropdown control's items property to:
If(Toggle1.Value,[100,200,300,400,500],[1,2,3,4,5])
Best Regards,
Bof
It says, if condition have some invalid arguments.
Not working. anything else
In the OnChange property of the dropdown control, add the following formula:
If(ToggleValue.Value, DropdownValues.Selected.Value * 100, DropdownValues.Selected.Value)
hope this helps
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2