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 / How To Set Fields as "...
Power Apps
Answered

How To Set Fields as "Required"?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

How does one set fields to be a "required" field when a user is filling out a PowerApp (or form)? I have searched and searched and nothing is jumping out at me. I realize that typically this would be handled if a PowerApp was connected to a data source such as a SharePoint list... but I am developing free-standing PowerApps to be completed and submitted via Microsoft Flows to designated email addresses. So in this case, how does one set fields to be "required" to be completed?

 

Appreciate the help... tga

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

    You can check for the existence of data or specific values with formulas in a label and then allow the user to move forward.  But you will need to use the "Set" function which creates a global variable.  This allows you to set the value of a label from within the If statement.  In the example below I use the set statement to create a variable called "testStringRequiredState".  And, I set it to be "whoa this thing is empty" if a field I want to have a value in it is empty.  If it has a value I set it to be "" and then - in the same part of the formula also execute the "SubmitForm" command (note it's separated by the semicolon.)  Submit form only executes if you get to the that part of the If statement. 

     

    If(
    DataCardValue11.Text = "", Set( testStringRequiredState, "whoa, this thing is empty" ),

    Set( testStringRequiredState, "" ); SubmitForm(EditForm1) )

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 413

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
timl Profile Picture

timl 315 Super User 2026 Season 1

Last 30 days Overall leaderboard