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 Platform Community / Forums / Power Apps / Combine multiple IF st...
Power Apps
Unanswered

Combine multiple IF statements

(0) ShareShare
ReportReport
Posted on by

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);
 )
)

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    With({Option1: Radio1.Selected.Value = "Tagesbericht neu erstellen" &&
     CountIf(
     tagesberichte; Email = User().Email &&
     IsToday(Datum)
     )>0
     }; 
     If(!Option1; Set(varFormMode;"NewForm");; Navigate(scr_form);
     Set(varFormMode;"EditForm");; 
     Notify("You already fill out a Form today, please choose edit"; Warning; 5000);;
     Navigate(scr_browse_form)
     )
    )
  • Community Power Platform Member Profile Picture
    on at

    That do the trick. Thank you very much. 

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