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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Powerapps VarPop

(0) ShareShare
ReportReport
Posted on by 20

Hello PowerUsers!

 

Good day!

 

I would just like to know what are the issue of my app. So I have this app that when the user clicks the dropdown, there will be a certain pop-up that will appear. This pop-up has been set to global variable named {VarShowpopup 2,3,4.... etc..}

 

Now, I got it to work, but whenever the user clicks the dropdown, it is requiring a double-click to show the pop-up. Also to add, i am not using any connector on this app.

 

Here is code on the Dropdown1_1 (1st dropdown):

 

If(
    Dropdown1.Selected.Value = "Benefits",
    "Payroll",
    "Benefits",
    "Offboarding",
    "Onboarding",
    "Rewards",
    "Records",
    "Health & Wellness",
    "Rewards",
    "Engagement & Comms",
    "HR Business Partners",
    "Org. Development",
    Set(
        varShowPopup,
        false
    );)
 
OnChange:
 
If(Dropdown1.Selected.Value="Payroll","Benefits","Offboarding","Onboarding","Rewards","Records","Employee Relations","Health & Wellness",Set(varShowPopup2_1, false );Set(varShowPopup2_2, false );Set(varShowPopup1, false );Set(varShowPopup1_1, false );Set(varShowPopup1_2, false );Set(varShowPopup1_3, false );Set(varShowPopup1_4, false );Set(varShowPopup1_5, false );Set(varShowPopup1_6, false );Set(varShowPopup2, false );Set(varShowPopup3, false );Set(varShowPopup4, false );Set(varShowPopup5, false );)
 
Pop-up visible property code:
 
If(Dropdown1.Selected.Value = "Academy",If(Dropdown1_3.Selected.Value = "Corporate and Business-Enabling Team (CBET)", varShowPopup2_1, false))
 
Thank you!
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,032 Most Valuable Professional on at

    Hi @JMBernardo ,

    I am a bit lost what you are trying to do here - example for the second item - if you want all those false if any of the items are in the dropdown

    If(
     Dropdown1.Selected.Value = in ["Payroll", "Benefits", "Offboarding","Onboarding", "Rewards","Records","Employee Relations","Health & Wellness"],
     Set(varShowPopup2_1, false);
     Set(varShowPopup2_2, false);
     Set(varShowPopup1, false);
     Set(varShowPopup1_1, false);
     Set(varShowPopup1_2, false);
     Set(varShowPopup1_3, false );
     Set(varShowPopup1_4, false);
     Set(varShowPopup1_5, false);
     Set(varShowPopup1_6, false);
     Set(varShowPopup2, false);
     Set(varShowPopup3, false);
     Set(varShowPopup4, false);
     Set(varShowPopup5, false)
    )

     

  • CU07021125-0 Profile Picture
    20 on at

    Hello!

     

    The goal of the dropdown is to close the previously opened pop-up, at first, when I didn't try to OnChange code, the pop-up will stay open even if the dropdown has been changed. This is why I used the code:

     

    If(
     Dropdown1.Selected.Value = in ["Payroll", "Benefits", "Offboarding","Onboarding", "Rewards","Records","Employee Relations","Health & Wellness"],
     Set(varShowPopup2_1, false);

     

    This is so whenever the user changed the dropdown to lets say "B", and when they return to "A", the "A" pop-needs to be clicked in-order to display.

     

    Now the problem is that, they need to double-click the dropdown items in-order to display the pop-up.

     

    Say, I clicked the "A" > pop-up will appear, then I navigate to 2nd item in the dropdown which is the "B" > then return to the "A" > the dropdown has disappeared, but in-order to display, it needs to be double clicked. The double clicking issue was just the thing I want to eliminate.

  • WarrenBelz Profile Picture
    153,032 Most Valuable Professional on at

    Hi @JMBernardo ,

    Before we go any further here, there is a much easier way to work with all those pop-ups using only one Variable. Also if this is all done on the same screen, you only need a Context Variable (not a Global Variable). If you use a Text Variable (example) and did this

    UpdateContext({varPopup: "Payroll"})

    and then the Visible on the Payroll pop-up would be

    varPopup = "Payroll"

    If you do every pop-up like this with simply the Visible of the pop-up equal to the value in the Variable, the moment you set the Variable to anything other than the one you need, all the others will not be visible. Please have a think about how this would work with your model as I am honesty still a little unclear on exactly what you are doing here.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard