cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Validate text because space counts as valid string in textbox

Hello!

 

I'm very very new to PowerApps and I have a question. I'm working on a survey app that requires users to type their name and the survery shouldn't continue if their name isn't in the box. If the box is empty, it currently doesn't continue, BUT it does continue if there is a space in the textbox.

 

Can anyone suggest a solution to my problem? Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Post Patron
Post Patron

Re: Validate text because space counts as valid string in textbox

Hello @Anonymous ,

 

You could validate the length of characters in the name text box using the function !IsBlank(Trim(Label1.Text)) on the visible property of the button that continues the survey. The trim function removes all the spaces in a string of text except for single spaces between words..

 

Thanks,

View solution in original post

2 REPLIES 2
Highlighted
Post Patron
Post Patron

Re: Validate text because space counts as valid string in textbox

Hello @Anonymous ,

 

You could validate the length of characters in the name text box using the function !IsBlank(Trim(Label1.Text)) on the visible property of the button that continues the survey. The trim function removes all the spaces in a string of text except for single spaces between words..

 

Thanks,

View solution in original post

Highlighted
Anonymous
Not applicable

Re: Validate text because space counts as valid string in textbox

21m ago

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,165)