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 / Mandatory fields with ...
Power Apps
Answered

Mandatory fields with PowerApp

(0) ShareShare
ReportReport
Posted on by

Hello Community,

 

for a couple of Months this function worked for me :       

If(

       !IsBlank(

        TextInput2.Text;;

        TextInput1.Text

       );

Patch......

);

But now it does not work anymore, I used it to create mandatory text fields.

Is there another solution for this?

The strange thing is, if I delete one Textinput, it will work totally fine again

Categories:
  • Verified answer
    SpongYe Profile Picture
    5,909 Super User 2026 Season 2 on at

    Hi @Melodayal 

     

    The !IsBlank only take one argument. 

    Check the syntax on the documentation page. 

     

    I modified the code:

    If(
     !IsBlank(TextInput1.Text) && !IsBlank(TextInput2.Text);
     Patch......
    );

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • Melodayal Profile Picture
    on at

    I will try this, thanks. 😁

    Have a great day too😃

  • Yogesh Murugan Profile Picture
    451 Moderator on at

    try this code 

    If(
    !IsBlank(TextInput1.Text) &&
    !IsBlank(TextInput2.Text),
    Patch......
    );

  • Melodayal Profile Picture
    on at

    It worked thanks 😉 

    But I Have one question how could I add one more textfield to that code, just another "&&" operator?

  • Yogesh Murugan Profile Picture
    451 Moderator on at

    Yes if you add another text filed condition you can add "&&"

    eg: 

    If(
    !IsBlank(TextInput1.Text) &&
    !IsBlank(TextInput2.Text) &&

    !IsBlank(TextInput3.Text) ,
    Patch......
    );

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 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard