web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PopUp should occur onl...
Power Apps
Answered

PopUp should occur only if a specific choice value is selected

(0) ShareShare
ReportReport
Posted on by 341

Hi

 

I trust that you are well. I need some help with popup.

 

I just want to know how to set up a Popup if a selected choice value is chosen. When I select the I declare button the popup must only occur if a choice value chosen = "YES" other than that the Popup must not show.

 

I have tried the below formula but the Popup does not come up.

 

Can you please assist me?

 

 

MiteshGovan_0-1622928726887.pngMiteshGovan_1-1622928741878.png

Patch(
'Medical',
Defaults('Medical'),
Visitors_Form.Updates,
VistorsD_Form.Updates
);
NewForm(Visitors_Form);
NewForm(VistorsD_Form);
Notify("Thank You For Submitting The Data",NotificationType.Success);
ResetForm(Visitors_Form);
ResetForm(VistorsD_Form);
If(Radio_cough.Selected.Value ="Yes",UpdateContext({varShowPopup:true}),UpdateContext({varShowPopup:false}));
Navigate('Welcome Screen')

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @MiteshGovan What's this pop-up that you are having? Do you have the visible of this pop-up set to varShowPopup?

  • MiteshGovan Profile Picture
    341 on at

    I have grouped visible function to varshowpopup.

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @MiteshGovan I don't understand. What control is this pop-up, Label? Button? Please share a screen shot and the formula.

  • MiteshGovan Profile Picture
    341 on at

    Hi @CNT .

     

    Popup is a button. Please see the attached. I hope it assists.

    group1.PNG
    declare.jpg
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @MiteshGovan Is Group1 in the same screen where the button is?

  • MiteshGovan Profile Picture
    341 on at

    Hi

     

    The group1 is the pop-up.

    The I declare button is the button when selected the pop-up requires to appear which is the group1. But it needs to see that the choice value is selected as "Yes". 

     

    If a user selects the choice button as "No".  The pop up must not show up. 

     

    The aim is once you select yes on the choice value and you press submit it will patch to sharepoint. But before it patches to sharepoint if it sees a "Yes". The pop up must show up. If "no", it shouldn't appear. 

     

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @MiteshGovan Thanks for the explanation. But my question was,

    Is Group1 in the same screen where the button is? Yes or No

  • MiteshGovan Profile Picture
    341 on at

    Hi @CNT

     

    Yes the Group1 is on the same screen as the I declare button. 

     

    Thank you 

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @MiteshGovan The problem is because, as soon as you set the variable to true, you are navigating to another screen!

    Navigate('Welcome Screen')

    The Popup is in another screen. It is visible but because you are navigating to the 'Welcome Screen', you can't see it. It's like you are trying to see 2 screens at the same time. That's not possible. Remove that Navigate and it will work.

     

    Please remember to give a 👍 and accept the solution as it will help others in the future.

  • MiteshGovan Profile Picture
    341 on at

    Hi

     

    The aim is, if you don't see a no than navigate me to welcome screen. Is that possible. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard