Hello,
I have a problem with my Power App. I try to edit a Button, so that my users can only edit one form every day.
I try to achieve this by an extra Screen called (scr_form_start). The user can select the first radio button, if he haven't saved a form this day, he should be navigated to the (scr_form). There he can fill out a new form and save it. But if he already save one this day, he should get a notification, that he already fill a form this day and can select the edit button and edit the form.
I try to validate this by controlling the email of the user and the actual date.
optional: I would like, that the user get a Pushnotification in the app, if he already edit a form this day.
Thank you for your help.
If(
Radio1.Selected.Value = "Tagesbericht neu erstellen";
If(
(
CountIf(
tagesberichte;
Email = User().Email &&
IsToday(Datum)
)
)>0;
Set(
varFormMode;"EditForm"
);;
Notify("You already fill out a Form today, please choose edit"; Warning; 5000);;
Navigate(scr_browse_form);
Set(
varFormMode;"NewForm"
);;
Navigate(scr_form);
)
)