web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Obligatory field

(0) ShareShare
ReportReport
Posted on by 95

Hello community! I wanted to ask you how you can make a field mandatory? It would be the equivalent of "Not null" in SQL, but doing it directly in Power Apps. Thanks!

Categories:
  • Verified answer
    JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Power Apps does not currently have the ability to make a field mandatory (This answer does not discuss fields in forms).

     

    There are ways to work around this by using Visible and DisplayMode properties of other controls.   What I do is add a 5 point star icon, 15 x 15 and make it red in color.   Then I make its visible property dependent on if the field is empty or not (IsBlank()).

     

    ReqField.png

     

    I will also set the DisplayMode property of any button that saves, submits or navigates somewhere else also based on whether the 'required' field has data.

     

    Like this:

     

     

     

    If(
     IsBlank(fieldName), DisplayMode.Disabled,
     DisplayMode.Edit
     )

     

     

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Labraham36 

    To add to what was mentioned by @JR-BejeweledOne , if you ARE using an EditForm for your data, then simply set the Required property of the datacard with your field to true.

     

    I hope this is helpful for you.

  • Labraham36 Profile Picture
    95 on at

    Thanks a lot! With that I fix it!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard