Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

From SharePoint Column Validation to Power App form

In my Sharepoint column I had a column validation for making sure the end user didn't enter any space.


=AND(IF(ISERROR(FIND(" ",[Contract Number])),TRUE))


which worked great, but now I've created a power apps form and this column validation doesn't work.


How do I validate my Contract Number in Power Apps? I just want to make sure there's no spaces used when the enter in their information and it would be just for that one column.

Super User
Super User

In Power Apps you could use this logic to check for a space in the words.

Find(" ", Label1.Text)>0


Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

@mdevaney  unless I'm putting it in the wrong place I didn't find that to work. I put it under Required in the datacard should it go somewhere else?

Helpful resources

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,192)