cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
darrenfloyd666
Post Prodigy
Post Prodigy

Form validation a field cannot be blank

Sorry, still (re)learning the ropes with PowerApps. What's the formula for preventing fields being blank before submission? What property would it be on?

 

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
mdevaney
Super User III
Super User III

@darrenfloyd666 

If you are using an Edit Form you can simply set the Required property of any Card to this

 

true

 

Then when the SUBMIT button is pressed the form will not be inserted into the datasource.

 

---
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." 

View solution in original post

4 REPLIES 4
ilton
Resolver II
Resolver II

Hi! @darrenfloyd666 

This should be defined in the datasource, sharepoint, db, excell etc.

 

but you can manually validate

If(IsBlank(SomeField.Value)
   Notify("blank fild", NotifictionType.error)// or some other action,
   Submit(TheForm)
)

 

mdevaney
Super User III
Super User III

@darrenfloyd666 

If you are using an Edit Form you can simply set the Required property of any Card to this

 

true

 

Then when the SUBMIT button is pressed the form will not be inserted into the datasource.

 

---
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." 

View solution in original post

Worked like a dream! Thanks @mdevaney 

@darrenfloyd666 

Awesome!  I'll continue to watch out for your questions.  Best of luck building your app Darren!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (36,868)