cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mhabig1
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.

2 REPLIES 2
mdevaney
Super User
Super User

@mhabig1 
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

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,803)