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 doesn't show on ...
Power Apps
Unanswered

Popup doesn't show on first screen, but does there after

(0) ShareShare
ReportReport
Posted on by 116

In the app OnStart i have:

LoadData(Colitemtokeep, "Saveditemstokeep", true); If(!IsEmpty(Colitemtokeep), [Notify("You still have unsent Data. Remember to send then once you have an internet connection"), NotificationType.Error, 4000])

 

This pulls saved data into the collection and shows a warning if data was available that the user should have submitted this last go...

 

In the 'onvisible' i have:

If(!IsEmpty(Colitemtokeep), UpdateContext({popup: true}))

 

This does the same above but with a nice popup (visible).

 

If the user starts the app the onvisible dosn't work but if they go back to the home screen it works a treat 🙂

 

Any ideas how to get it to work on the first go?

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    I guess the Onvisible is on the Home screen. That is how Onvisible works. It works on whenever you go to that particular screen. If you want it work across many screens, use Set instead of Onvisible or replicate the Onvisible on that screen also.

    ------------

    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.

  • The_blue Profile Picture
    116 on at

    Hi, i just want it to work on that screen.

     

    It's fine when i return to that screen, i wonder if it's getting to homescreen before the data is loaded and visible?

  • eka24 Profile Picture
    20,925 on at

    No. The Data is loaded at the start of the app. 

    The Onvisible only check if there are records on what was loaded OnStart. Hope it's clear.

  • The_blue Profile Picture
    116 on at

    Thats clear 🙂 Problem is there are records loaded on start. If i flick forward a page and come back the popup works

  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at
    Instead of messing with a variable just set the visible of the pop up to be !isempty(collection) this should only show when it’s not empty and instantly go away when it is.
  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at
    Well never mind. I’m assuming your wanting to be able to dismiss the pop up.
  • The_blue Profile Picture
    116 on at

    Sooo close!

     

    I've trimmed the warning and IF and added !IsEmpty(Colitemtokeep) to the visible (that hadn't even occurred to me!)

     

    New issue:-

     

    The popup has 2 buttons, I've fix this later and let's fix this now..

     

    The 'fix this later' button updated the context of visible to false and the popup went. How do i do that now?

  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at
    You can’t without a variable. Instead of update context try to do a set like suggested. So If(!isempty(col),set(show popup,true))

    If that doesn’t work. Add the same line of code to your on start.
  • The_blue Profile Picture
    116 on at

    Ok 

     

    App

    Onstart:  LoadData(Colitemtokeep, "Saveditemstokeep", true); If(!IsEmpty(Colitemtokeep),Set(popup,true))

     

    Homescreen

    Onvisible: If(!IsEmpty(Colitemtokeep),Set(popup,true))

     

    Popup group

    Visible: popup

     

    Popup button

    Onselect: Set(popup,false)

     

    Still no luck 

  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at
    So the popup isn't coming up on start? Until you nav off? I know there is a preview feature in the app settings for loading controls before data, not sure that's on by default or the cause but something to look for possibly.

    Also, I can't remember if isBlank() would work better or if it works on a collection at all, but it might be an alternitive.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 421

#2
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 278 Super User 2026 Season 1

Last 30 days Overall leaderboard