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 / Multiple actions for I...
Power Apps
Answered

Multiple actions for IF condition

(0) ShareShare
ReportReport
Posted on by 76

I have an IF statement which needs to perform multiple actions for the IF condition.  The below statement works as written:

 

If(DataCardValue82.Text <> Blank() && DataCardValue9.SelectedDate <> Blank() && DataCardValue37.Text <> Blank() && DataCardValue5.Text <> Blank() && DataCardValue8.Selected.Value <> Blank() && DataCardValue6.Selected.Value <> Blank() && DataCardValue38.Text <> Blank() && DataCardValue71.Text <> Blank() && DataCardValue68.SelectedDate = Blank(), Office365Outlook.SendEmailV2("email address", "Notice: New Staff Onboarding", Onboarding_Finance_Email.HtmlText) );
 
I need to add to the statement so that in addition to sending the email, it sets DataCardValue68.SelectedDate = Today().
 
How can I accomplish this?
Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    36,733 Super User 2026 Season 1 on at

    Hi @StaceyGriffeth 

    You should be able to do this by declaring and setting a variable (eg, varToday).

    If(DataCardValue82.Text <> Blank() && DataCardValue9.SelectedDate <> Blank() && DataCardValue37.Text <> Blank() && DataCardValue5.Text <> Blank() && DataCardValue8.Selected.Value <> Blank() && DataCardValue6.Selected.Value <> Blank() && DataCardValue38.Text <> Blank() && DataCardValue71.Text <> Blank() && DataCardValue68.SelectedDate = Blank(), Office365Outlook.SendEmailV2("email address", "Notice: New Staff Onboarding", Onboarding_Finance_Email.HtmlText) );
    Set(varToday, Today());
    Reset(DataCardValue68)

     

    If you set the DefaultDate property of your DataCardValue68 date picker to varToday, it should show today's date when you run the above formula.

  • StaceyGriffeth Profile Picture
    76 on at

    Hi @timl thanks so much for the suggestion!  I just tried this and, when trying to submit the changes, got the error:

     

    "The Reset function can only be used with a resettable control.  Controls within a form or Gallery control caaan only be reset from within the same form or gallery template"

     

    The If code is in the OnSelect for a button.  Do you know what I need to do to fix this?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 531 Most Valuable Professional

#2
Haque Profile Picture

Haque 261

#3
Kalathiya Profile Picture

Kalathiya 221 Super User 2026 Season 1

Last 30 days Overall leaderboard