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 / New form validation
Power Apps
Answered

New form validation

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

 

I am currently in the process to build a request form for my organization and i want to plug in some validations in the form. My data source is SharePoint Custom List. Below are my requirements:

  • Length validation for a text field : Restrict user to enter more than 15-20 characters in the text field. if they enter more than that I want the a display message stating enter maximum 15 characters and the save button should get disabled.
  • Date validation : if the user enters the date manually and not by selecting the date picker and if the date entered is wrong then it should also state a display message saying date entered is wrong and the save button should get disabled.

Thanks in advance!

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,393 Most Valuable Professional on at

    Hi @Anonymous ,

    Character Validation - on the OnChange of the Text box

    If(
     Len(Self.Text)>15,
     Notify("Only 15 Characters allowed",NotificationType.Error)
    )

    On the DisplayMode of the button

    If(
     Len(YourTextBoxName.Text)>15,
     DisplayMode.Disabled,
     DisplayMode.Edit
    )

    For the second one, set the IsEditable of the Date Picker to false.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard