APIs & Integrations

joshm1
Member

Custom Date Picker Value Removed After Clicking out of Field

Date field is clicked and date picker appears...

Date is selected and field value is set...

Second Image

Value disappears next time the mouse is clicked (anywhere)

Third Image

The datepicker I’m using is glDatePicker. The reason I am trying to use a custom date picker is because we need to be able to restrict which dates can be selected, dynamically, based on the users zip code.

We’ve been experiencing this issue for a couple months hoping whatever caused it would be resolved. Prior to this our datepicker worked without any problems.

This has been a huge source of frustration so any help is greatly appreciated.

Thank you in advance,
Josh

0 Upvotes
7 Replies 7
3PETE
HubSpot Employee
HubSpot Employee

Custom Date Picker Value Removed After Clicking out of Field

@joshm is something you have built on the hubspot COS? Are you refreshing the pane regularly which would lose the date as it’s not cached in memory?

0 Upvotes
joshm1
Member

Custom Date Picker Value Removed After Clicking out of Field

@pmanca yes I built it on the Hubspot COS. It is just a standard form on a landing page with a jquery date picker. A colleague of mine found this Article and I tried attaching "val([…]).change() but it still doesn’t work for me. I am not sure what you mean by “refreshing the pane” can you please explain?

Thank you!

0 Upvotes
joshm1
Member

Custom Date Picker Value Removed After Clicking out of Field

@pmanca Also, is there a way to replace the hubspot datepicker with my own?

0 Upvotes
dan_hmonks
Member

Custom Date Picker Value Removed After Clicking out of Field

@joshm, there is a work around to select any date picker on form if you wish we can send you Demo for this, see if that is useful to you …

0 Upvotes
joshm1
Member

Custom Date Picker Value Removed After Clicking out of Field

@dan_hmonks, yes that would be great, thank you!

0 Upvotes
joshm1
Member

Custom Date Picker Value Removed After Clicking out of Field

@dan_hmonks when you have a chance could you please send the demo? It would be a huge help. Thank you!

0 Upvotes
dan_hmonks
Member

Custom Date Picker Value Removed After Clicking out of Field

@joshm, yes we are ready with a demo :slight_smile:

Please let me know if that is close that you ::

Please click below link

datapicker

datapicker

0 Upvotes