cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Power_Aissam
Frequent Visitor

Pop up to show once a day

Hi,

I am working on a TaskList app and I designed a pop up to show a reminder for the user to update the status of their tasks. Currently, the pop up shows everytime a user enters the app. However, I want it to show only once a day. For example, the user enters the app, sees the pop-up and clicks ok for the pop up to disappear, and the next time they see the pop up is when they open the app the next day.

Thanks,

 

5 REPLIES 5
RezaDorrani
Dual Super User II
Dual Super User II

Hi @Power_Aissam 

 

You could store the information locally within the App using SaveDate and then check the value using LoadData

 

You can save information as to popup last displayed date time

 

next time user logs in check with the saved data and compare. If in same day, do not show pop up else show the pop up

 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-savedata-loaddata

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

@RezaDorrani  can you please provide an example and/or more detail ? I am not really sure how to implement this.

Thanks,

v-xida-msft
Community Support
Community Support

Hi @Power_Aissam ,

Based on the needs that you mentioned, I afraid that there is no direct way to achieve your needs.

 

As an alternative solution, you could consider add another SP List to store the Pop-Up record for the end user to open your app. Within the SP List, you may need to add following columns:2.JPG

Then add above SP List as data source within your app. Set the OnStart property of the App control to following:

If(
    IsBlank(LookUp('YourPopUpRecordList',  Text('Open Date', "[$-en-US]mm/dd/yyyy") = Text(Today(), "[$-en-US]mm/dd/yyyy") && Runner = User().FullName)),
    Set(ShowPopUp, true),
    Set(ShowPopUp, false)
)

Set the Visible propety of your Pop-up Box to following:

ShowPopUp

Set the OnSelect property of the "OK" button within your Pop-Up box to following:

Set(ShowPopUp, false);
Patch( 'YourPopUpRecordList',
Defaults('YourPopUpRecordList'),
{
Title: "Pop-Up Record",
'Open Date': Today(),
Runner: User().FullName
} )

Please take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Power_Aissam
Frequent Visitor

@v-xida-msft  unfortunately, the on start property of the app doesn't trigger at all the global variable. Therefore, my pop up doesn't even show and no record is created!

Were you able to resolve this issue?  I am also looking for a way to provide a message box for training when a feature or function of the app changes. 

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (3,409)