hey all,
I'm building an app that needs the user to agree to terms and conditions by ticking checkboxes before continuing to the app.
they only have to be content with the terms once-off. Their email and names are stored in a SharePoint list upon submission.
I need help with the app checking whether they have signed before or not when the user enters the app. if they have, they should skip the agreement. and if not the Ts and Cs page should appear before they proceed.
Hi @Anonymous ,
What I posted should work - it is simply looking for the presence of the user's email in the list and showing the pop-up then putting them there if not present.
hey, for some reason the screen does not validate as intended.
even having used the Ts and Cs screen before, when I go back on the app, the screen still appears.
whereas it's supposed to be a once-off per user.
please shed light.
Hi @Anonymous ,
Just checking if you got the result you were looking for on this thread. Happy to help further if not.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Hi @Anonymous ,
You just need a list with their email in (example below List name SignIn and field name UserMail)
At App OnStart
Set(
gblPopup,
IsBlank(
Lookup(
SignIn,
UserMail = User().Email
).UserMail
)
)
Visible on your pop-up
gblPopup
On the acknowledge button OnSelect
Patch(
SignIn,
Defaults(SignIn),
{UserMail:User().Email}
);
Set(gblPopup,false)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps