cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kman42
Level: Powered On

Can't use datepicker in form

I am trying to use a datepicker in my edit form, but I can't seem to get it to work. I can't insert a datepicker into the card; it always just gets placed on the screen. I also can't seem to change the data type for my field. I don't have a Card screen that looks like the attached picture. There is no 'options' tab. Instead, I have 'Properties,' 'Rules,' and 'Advanced. There doesn't appear to be any way to change the data type.

 

Thanks!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Can't use datepicker in form

Hi @kman42 , 

 

For adding the control inside a certain datacard, you need to unlock the properties from the right menu item and then select the data card and from the insert tab, try to insert the controls that you want to add into the data card and you should be able to do that.
 
MicrosoftTeams-image (38).png
 
As, you cannot change the data type for your field, you have to send the date through a datepicker converted as a string. For that, you need to set the Update property of the datacard to pick the value from a datepicker.
 
Please refer to the attached screenshot:
Here I have a string type column in my SP list and I have removed the text input from the data card and replaced it with a date picker and referring to date picker value in the Update field and converting it to a string so that it gets accepted while submitting the form.
MicrosoftTeams-image (39).png

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

2 REPLIES 2
Dual Super User
Dual Super User

Re: Can't use datepicker in form

Hi @kman42 , 

 

For adding the control inside a certain datacard, you need to unlock the properties from the right menu item and then select the data card and from the insert tab, try to insert the controls that you want to add into the data card and you should be able to do that.
 
MicrosoftTeams-image (38).png
 
As, you cannot change the data type for your field, you have to send the date through a datepicker converted as a string. For that, you need to set the Update property of the datacard to pick the value from a datepicker.
 
Please refer to the attached screenshot:
Here I have a string type column in my SP list and I have removed the text input from the data card and replaced it with a date picker and referring to date picker value in the Update field and converting it to a string so that it gets accepted while submitting the form.
MicrosoftTeams-image (39).png

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Community Support Team
Community Support Team

Re: Can't use datepicker in form

Hi @kman42 ,

 

If you mean that you have a date field that is not included in the Form, then please select "+Add custom fields" and then pick the field you want to add.

 

If you mean that you have a text field data card and you want to replace the textinput control with datepicker, then you need to first select this data card, and Unlock this data card. With this data card selected, select the textinput control to delete it, and then insert a date picker control. Finally, still with this data card selected, set its Update property to:

DatePicker1.SelectedDate

 

In addition, what is web browser that you are using?

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
thirdimage

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,502)