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
ck25415
Level 8

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
ck25415
Level 8

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

Anonymous
Not applicable

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

21m ago

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,674)