Custom Date Picker Value Removed After Clicking out of Field


#1

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


#2

@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?


#3

@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!


#4

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


#5

@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 …


#6

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


#7

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


#8

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

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

Please click below link