New free cloneables are live! Join the club and claim them.

How to add a date picker to your webflow forms

How to add a date picker to your webflow forms

Step 1:

Add this code inside the <head> tag of your custom code:

<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<style type="text/css">div#ui-datepicker-div.ui-datepicker.ui-widget.ui-widget-content.ui-helper-clearfix.ui-corner-all{z-index: 2222 !important;}</style>

Step 2:

Add this code inside the before </body> tag of your custom code:

<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>  
$('#datepicker').datepicker();
</script>

Step 3:

Firstly add an input field -

Capture

Secondly give it an ID of ‘datepicker’

Capture

Need more than one?

Edit: if you’d like to have more than one datepicker on the same page just swap the #ID in the custom code for a .class and give each input an individual ID and you should be able to have more than one. For example this is how two datepickers would look in your custom code:

Then give the input field a CSS class of ‘datepicker’ with an ID of for example datepicker_1. Then if you want to add another give it the same class name and a new unique ID for example datepicker_2.

This product is not yet available. Join us on twitter for updates.