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 196
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)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,429 Super User 2025 Season 2 on at
    Hi
     
    This is a great question. I guess the best initial statement is, there isn't one.
     
    You can create solutions to verify that someone typed a string then added a space and then a string
    but that's all you can really guarantee
     
    Then you have the situation where someone types their full name
     
    My name has 4 parts to it.. which wouldn't necessarily work in your situation of how you worded it.
     
    1) are you allowing people to type their full name, or just string space string (first last)?
     
    Firstly I would look here please
     
    These are functions that allow you to add Regular expressions that it tests again. AKA, string space string for instance
     
    Another super simple test is this
     
    I have a text input called FirstLast (yes I am a genius lol)
     
    I have a button.
     
    In the button display mode I have
    If(CountRows(Filter(Split(FirstLast.Text, " "), !IsBlank(Value))) >= 2, DisplayMode.Edit, DisplayMode.Disabled)
     
    The reason it is like this is to stop the Blank (space) from being included in the initial steps, this to me is
    a bug in the platform side, but the above code ensures that it is only checking is value strings are there
    and that there are at least 2 valid ones with a space in between
     
    Picture one I just have the word First
     
    Picture 2 I added the space
     
     
    Picture 3 I typed their last name and bingo I can save
     
     
     
  • DerrickH Profile Picture
    196 on at
    Hi FLMike, Thanks for the reply.  
     
    To answer your question:
     
    1) My goal is just to achieve the "string space string" scenario.
  • Michael E. Gernaey Profile Picture
    53,429 Super User 2025 Season 2 on at
    Cool
     
    So glad I could help thank you for clarifying also :-)

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