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 / creating a pop up base...
Power Apps
Answered

creating a pop up based on conditional logic

(0) ShareShare
ReportReport
Posted on by 87

I am trying to create a pop up based on whether all mandatory fields in a form are completed or not. If they are not all completed, i want the pop up to become visible. I have the below formula entered in on the "onselect" control for the button, but it is not working to show the pop up I have created. Error code pasted below as well.

 

If(Form1.Valid, SubmitForm(Form1),Group1.true));
Navigate('Submit Confirmation Screen', BorderStyle.None)

 

LipoLoHu_0-1680126899395.png

 

Categories:
I have the same question (0)
  • SebS Profile Picture
    4,746 Super User 2026 Season 1 on at

    @LipoLoHu 

     

     

    You have one too much ) use below and check if error will still show up

     

    If(Form1.Valid, SubmitForm(Form1),Group1.true);
    Navigate('Submit Confirmation Screen', BorderStyle.None)

  • LH-23071616-0 Profile Picture
    87 on at

    the same error code persists

  • SebS Profile Picture
    4,746 Super User 2026 Season 1 on at

    @LipoLoHu 

     

    What is Group1.true ?

  • SebS Profile Picture
    4,746 Super User 2026 Season 1 on at

    @LipoLoHu 

     

    I'm asking cause Groups do not have Properties, so you can't reach anything from that level, and I think this is the main issue.

     

     

  • LH-23071616-0 Profile Picture
    87 on at

    I changed 'group.1' to the label inside it, which is the pop up you see in red below. I am still getting that same error code

     

    LipoLoHu_0-1680127928071.png

     

  • Verified answer
    SebS Profile Picture
    4,746 Super User 2026 Season 1 on at

    @LipoLoHu 

     

    That will not work. Change it to this:

     

    If(Form1.Valid, SubmitForm(Form1),UpdateContext({varPopUp:true}));

     

     

    Now in the label and icon Visible property place varPopUp

     

    and in the OnSelect property of the Icon place:

     

    UpdateContext({varPopUp:false})

     

    That should resolve your problem and pop up should start to work

  • LH-23071616-0 Profile Picture
    87 on at

    Well that worked beautifully! Except now, even when i have all mandatory fields filled in, the pop up will show and it will not submit any data. thoughts?

  • LH-23071616-0 Profile Picture
    87 on at

    NVM its perfect TY so so much!

  • SebS Profile Picture
    4,746 Super User 2026 Season 1 on at

    @LipoLoHu 

     

    So it's all good, no problem then good it's working 🙂

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard