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 / Text Input Control Val...
Power Apps
Answered

Text Input Control Validation

(1) ShareShare
ReportReport
Posted on by
Hello,    Can anyone lead me in the right direction to understand how to validate the text input control to a full "First & Last" name scenario?  I have a button disabled until a text input is filled out, though I'm trying to keep it disabled until both the First and Last name is input in the control.
Categories:
I have the same question (0)
  • Verified answer
    TuongDoan Profile Picture
    573 Moderator on at
    Depending on how strictly you want to validate, if any name containing two words is considered valid, then you only need to check if there are two words separated by a space.

    In the DisplayMode property of the button, use this expression:
     
    If(
        IsMatch(
            TextInput1.Text,
            "\w+ \w+"
        ),
        DisplayMode.Edit,
        DisplayMode.Disabled
    )
     
    ---------------------------
    If the solution works, please kindly ✔️ check the box "Does this answer your question?" on the bottom left! This will help others in finding the solution more expediently 😄 Also, a Like would be a great compliment!
     

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard