cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HarishaAkkil
Helper III
Helper III

Condition to check multiple fields in single IF condition

Hi Team,

 

I want to check multiple fields in PowerApps are blank. The below code is not working for me. 

 

If(IsBlank(TextInput1.Text) && IsBlank(TextInput1_1.Text) && IsBlank(TextInput1_2.Text),
Notify("Please fill in the required details"),
Navigate('Screen2')
)

 

Please help me with this.

Thanks,

Harisha

1 ACCEPTED SOLUTION

Accepted Solutions
shoog
Dual Super User
Dual Super User

You'll probably want to change the first line to

If(IsBlank(TextInput1.Text) || IsBlank(TextInput1_1.Text) || IsBlank(TextInput1_2.Text)

so the notify action triggers if any of the fields is blank, with && it only triggers if all of the fields are blank.

View solution in original post

2 REPLIES 2
shoog
Dual Super User
Dual Super User

You'll probably want to change the first line to

If(IsBlank(TextInput1.Text) || IsBlank(TextInput1_1.Text) || IsBlank(TextInput1_2.Text)

so the notify action triggers if any of the fields is blank, with && it only triggers if all of the fields are blank.

Thank you so much it did worked.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,255)