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 / IF and ELSE IF in Powe...
Power Apps
Answered

IF and ELSE IF in Power Apps

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a form with two datacard fields and the datasource is dataverse tables

Eg  Name and Email

I only want to  be able submit the form when  both fields are populated and then go to the success screen

 

I have set  fields to Required to be true

 

I have also set DisplayMode to If(IsBlank(DataCardValue7_1) Or IsBlank(DataCardValue9_1), Disabled, Edit) - which  then  disables the Submit Button when either one is not populated  

I have tried DisplayMode to If(IsBlank(DataCardValue7_1) And IsBlank(DataCardValue9_1), Disabled, Edit)  - which then disables the Submit Button when both are not populated

 

I would like to be able to include disable the Submit button

If both fields are blank or if either one field is blank, thus the Submit button should only be enabled if both fields are populated

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    I made a sample for you.

    vxiaochenmsft_0-1664160488752.png

    If(!IsBlank(DataCardValue7_1.Text) And !IsBlank(DataCardValue9_1.Text),Edit,Disabled)

     

    Best Regards,

    Wearsky

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard