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 Platform Community / Forums / Power Apps / Make fields required/m...
Power Apps
Answered

Make fields required/mandatory outside a form

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

 

I created a screen that contains multiple text inputs, dropdowns, date pickers and so on.

I submit all that information to a SharePoint list using the Patch function.

The problem is that I need 3 fields to be filled out all the time.

Since I'm not using an Edit Form that has the Required function, I was wondering if it's possible to prevent the Patch if these 3 fields don't contain information.

 

Thank you!

Categories:
I have the same question (0)
  • Verified answer
    DylanSimons Profile Picture
    326 on at

    You can do a simple If() statement around the Patch.

     

    I would do something like this:

     

    If(
     IsBlank(TextInput1.Text) || IsBlank(Dropdown1.Selected.Value),
     Notify("Please fill out all items"),
     Patch(...)
    )
  • Pstork1 Profile Picture
    69,599 Most Valuable Professional on at

    @DylanSimons code should work, but I normally use that code somewhere other than the patch statement itself to provide more context for the user.  I assume the Patch statement is being executed by something like a Submit button.  If you use the IF statement that checks for the fields not being empty to set the button display mode then users won't be able to submit until they fill in the fields.  They will also have a visible indicator that they can't submit.  You can also add a label with a message about required fields that uses the same IF statement in the Visible property.

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard