Hello,
I was wondering if someone can help me with this . I have radio buttons for Yes and No. When someone clicks Yes a PopUp appears from them to write the reason the answered Yes. I did that with
If(Rquestion1.Selected.Value="Yes",true,false)
And I get this :
I have OnSelect for the close Button :
UpdateContext({PopUp: false});
It does not work tho. The PopUp It is not closing. Any ideas ? Any Help I would truly appreciate.
Thank you
Solved! Go to Solution.
Step1:
On your Radio button Change property: If(Radio1.Selected.Value="Yes",Set(showpopup,"show"),Set(showpopup,"hide"))
Step 2:
Your popup (Label, Textinput, close button, Rectangle) has to be grouped say Group1
On the Group1 visible property: If(showpopup="show",true,false)
Step 3:
On the Close Button On Select Property: Set(showpopup,"hide")
Thats it.
Correction:
Step1:
On your Radio button Change property: If(Radio1.Selected.Value="Yes",Set(showpopup,"show"),Set(showpopup,"hide"))
Step 2:
Your popup (Label, Textinput, close button, Rectangle) has to be grouped say Group1
On the Group1 visible property: If(showpopup="show",true,false)
Step 3:
On the Close Button On Select Property: Set(showpopup,"hide")
Thats it.
Sorry about that...had a typo.
Your formula should be the following:
UpdateContext({PopUp: Self.Selected.Value="Yes"})
Yeah, you don't need all of that for this to work, just fix the formula I resent.
You will need to utilize a variable for this to happen.
On the Radio control, use the OnChange action and set the formula to:
UpdateContext({PopUp: Self.Value="Yes"})
Set the Visible of your popup controls to PopUp
Set the OnSelect of your Close button to:
UpdateContext({PopUp:false})
I hope this is helpful for you.
Hello @RandyHayes
Thank you for the answer.
When I change the OnChange I get this :
Just making sure, when you say, set the Visible of your popup controls to PopUp, you mean this right?
Thank you again for any help you can provide me.
Does clicking the "Yes" radio button update the context of the variable to true? And is the visible on your popup components set to the variable "PopUp"?
Step1:
On your Radio button Change property: If(Radio1.Selected.Value="Yes",Set(showpopup,"show"),Set(showpopup,"hide"))
Step 2:
Your popup (Label, Textinput, close button, Rectangle) has to be grouped say Group1
On the Group1 visible property: If(showpopup="show",true,false)
Step 3:
On the Close Button On Select Property: Set(showpopup,"hide")
Thats it.
Correction:
Step1:
On your Radio button Change property: If(Radio1.Selected.Value="Yes",Set(showpopup,"show"),Set(showpopup,"hide"))
Step 2:
Your popup (Label, Textinput, close button, Rectangle) has to be grouped say Group1
On the Group1 visible property: If(showpopup="show",true,false)
Step 3:
On the Close Button On Select Property: Set(showpopup,"hide")
Thats it.
Hello @joeinmay
I did all of this but the close button when clicked one still not closing the PopUp.
Am I doing something wrong ?
Sorry about that...had a typo.
Your formula should be the following:
UpdateContext({PopUp: Self.Selected.Value="Yes"})
Yeah, you don't need all of that for this to work, just fix the formula I resent.
Check out new user group experience and if you are a leader please create your group
Did you miss the call?? Check out the Power Apps Community Call here!
See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
257 | |
241 | |
83 | |
36 | |
28 |
User | Count |
---|---|
301 | |
268 | |
118 | |
68 | |
46 |