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 / Modern Controls - Text...
Power Apps
Answered

Modern Controls - Text Input, Required Property

(0) ShareShare
ReportReport
Posted on by 37

Building an app and have used the Modern Text Input.

 

I set the required property to True, but I can't find any description of what that property does.

 

Here is what learn.microsoft.com has:  Required â€“ Must fill in field or not.

The Matthew Devaney blog is my favorite:  Required  Unknown purpose.

 

I am currently using the If function to force entry into certain fields.  What I want to know is what changes when I set the Modern Text Input Required parameter to true?

 

Anybody?

Categories:
I have the same question (0)
  • jrletner Profile Picture
    720 Moderator on at

    If you want the Submit button greyed out based on whether or not the text input is blank, you can do this:

    Button:  go to the DisplayMode property and enter a formula similar to this

    jrletner_0-1705602794797.png


    Now your button is disabled if the textInput is empty.

    jrletner_1-1705602832982.png


    Now the button is enabled when the textInput is not empty:

    jrletner_2-1705602861233.png

     

  • dhock Profile Picture
    126 on at

    Hi. Setting the Required property to true will cause an error notification if the field is empty and the user clicks on Submit. It does not disable the Submit button.

  • adammparmenter Profile Picture
    37 on at

    Yes.  I'm currently doing that method on other forms, but how exciting that there is a new parameter for the Modern Text input.  Required=True.  I really what to now what it does?

  • Himanshu_90677 Profile Picture
    416 on at

    Hey @adammparmenter 

    Use isblank function onselect of submit button with if condition.

    If(isblank(textinput.text), notify("text", type error),submit)

     

  • Verified answer
    jrletner Profile Picture
    720 Moderator on at

    That required feature will work inside of a Form control that will prevent the form from being submitted if that value is blank. It will not disable your button though, you need to write the code for that.

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 481

#2
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#3
11manish Profile Picture

11manish 291

Last 30 days Overall leaderboard