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 Pages / Power Pages Validation...
Power Pages
Unanswered

Power Pages Validation on DatePicker

(0) ShareShare
ReportReport
Posted on by 7

Hi,

 

Not sure if this is the right place to post this! I am working on a web form using the multi-step form component in Power Pages. I want to add custom validation and it seems like the best way to do this is through JQuery. So far, I have been able to customize most things in the form other than the multi-step form. 

 

I can add JQuery to the input field of the multi-step form (console out input), but can't do the same when the user selects the calendar button. Since this is a built in component, there is no ID I can use to manipulate the element used to select a date. 

 

Does anybody know how to get around this?

 

Regards!

datepicker.png
Categories:
I have the same question (0)
  • oliver.rodrigues Profile Picture
    9,471 Most Valuable Professional on at

    Hi, are you using the Page_Validators object? can you share your entire code? 

  • Alena-Auctus Profile Picture
    15 on at

    Hello @PavalSidhu,
    Recently I had to add a specific validation to date-picker inside a multi-step form in Power Pages. Date-picker use Bootstrap Datepicker
    https://getdatepicker.com/4/Options/#usecurrent

    to create this kind of component.

    Here is a very useful article on how to get access to date-picker component through JS:
    https://www.dancingwithcrm.com/date-fields-on-powerappsportals/


    Using this information you can add validation to your date-picker. To add custom validation you have to use Page_Validators object as it was mentioned.
    Here is the oficial documentation about custom validation:
    https://learn.microsoft.com/en-us/power-pages/configure/add-custom-javascript



    hope it helps

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Valantis Profile Picture

Valantis 58

#2
11manish Profile Picture

11manish 55

#3
Vish WR Profile Picture

Vish WR 29

Last 30 days Overall leaderboard