Lead Capture Tools

ARichards7
Member

Date picker - display setting

SOLVE

Hello,

 

I have a date on a form that is set to only accept future dates. However, when the date picker appears it lets the user pick and enter a date in the past. Can I set the date picker to only show future dates to be selected from?

 

When the user submits the form and gets an error it is too late to find out that they can't do that - bad experience.

 

Many thanks,

 

Aly.

0 Upvotes
1 Accepted solution
karstenkoehler
Solution
Hall of Famer | Partner
Hall of Famer | Partner

Date picker - display setting

SOLVE

Hi @ARichards7,

 

Validation rules are not currently enforced when setting property values via form submissions or workflows, see here: https://knowledge.hubspot.com/crm-setup/set-validation-rules-for-properties

 

In forms, it's currently not possible to set rules with the native options that HubSpot is offering. You would have to use custom JavaScript on your page to enforce rules, see for example here.

 

Best regards!

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

View solution in original post

1 Reply 1
karstenkoehler
Solution
Hall of Famer | Partner
Hall of Famer | Partner

Date picker - display setting

SOLVE

Hi @ARichards7,

 

Validation rules are not currently enforced when setting property values via form submissions or workflows, see here: https://knowledge.hubspot.com/crm-setup/set-validation-rules-for-properties

 

In forms, it's currently not possible to set rules with the native options that HubSpot is offering. You would have to use custom JavaScript on your page to enforce rules, see for example here.

 

Best regards!

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.