cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ShawnPOWER
Advocate I
Advocate I

Date picker input control - Is it possible to allow only user input from the calendar button and not the text box?

Essentially what I am after here is not allowing the user to free hand type at all into the "Date picker" input control text box but rather always force them to use the calendar icon within the "Date picker" input control to enter in the date that way. For example of what I want here is when a user clicks the text box in the "Date picker" input control the calendar pops up (just as it does on the calendar button) and they have to select from there instead of typing it in. I am trying to do this with an "Edit Form" but may some day want it without the "Edit Form".

1 ACCEPTED SOLUTION

Accepted Solutions
rebeccas
Community Champion
Community Champion

I know of a "cheat" way to do this. 

 

If you have your DatePicker and remove that padding on the Left and Right side you can then down size it to just show the calendar. 

 

Then put a label to the left of it that displays the date selected in the date picker. You could even put a message in there until they select it. Something like: 

 

If(IsBlank(DatePicker1.SelectedDate),"-Please select date-", DatePicker1.SelectedDate)

View solution in original post

3 REPLIES 3
rebeccas
Community Champion
Community Champion

I know of a "cheat" way to do this. 

 

If you have your DatePicker and remove that padding on the Left and Right side you can then down size it to just show the calendar. 

 

Then put a label to the left of it that displays the date selected in the date picker. You could even put a message in there until they select it. Something like: 

 

If(IsBlank(DatePicker1.SelectedDate),"-Please select date-", DatePicker1.SelectedDate)

View solution in original post

rebeccas
Community Champion
Community Champion

Work like this...

Brillant idea @rebeccas, worked perfectly!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,178)