Hello Experts,
i want button to be enable or disable on dropdown selection. in dropdown either value will be filled or it will be blank. If dropdown has value button will be enable otherwise disable . so i am writing this on dropdown ONChange property:
If(IsBlank(Dropdown9_1.Selected.Result),UpdateContext({var3:true}),UpdateContext({var3:false}))
on button DisplayMode:
If(var3=true,Disabled,Edit)
But button is always active not following condition , am i making any mistake :? , i tried with ISEmpty function , still same. please advise
Solved! Go to Solution.
I suggest you remove the formula on the OnChange if the objective is to change the display mode based on the drop-down being blank.
Then
Change the formula on the display mode of the button to;
If(IsBlank(Dropdown9_1.Selected.Result),DisplayMode.Disabled,DisplayMode.Edit)
----------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
I suggest you remove the formula on the OnChange if the objective is to change the display mode based on the drop-down being blank.
Then
Change the formula on the display mode of the button to;
If(IsBlank(Dropdown9_1.Selected.Result),DisplayMode.Disabled,DisplayMode.Edit)
----------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Hi @Anonymous ,
I'm not getting all the context of your app, but please try to put:
If(Len(Dropdown9_1.Selected.Result)>0,UpdateContext({var3:false}),UpdateContext({var3:true}))
and also you can use:
If(var3,Disabled,Edit)
as var3 is already a bool variable.
Hope it helps !
Hello @gabibalaban , Thanks for looking into this issue. i simply wanted to restrict user if he did not made any selected in the respected field.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
190 | |
63 | |
44 | |
34 | |
25 |
User | Count |
---|---|
243 | |
106 | |
89 | |
84 | |
64 |