cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Super User
Super User

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

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
Highlighted
Super User
Super User

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

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

Highlighted
Super User
Super User

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

Work like this...

Highlighted
Advocate I
Advocate I

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

Brillant idea @rebeccas, worked perfectly!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,584)