If you are looking to extend your Webflow form with more input types read on.
Here is the link to my custom form page where I have demonstrated what can be done when you combine the Webflow form widget and the embed widget.
To use this technique you will need the from block on your page. You can learn more about the [Webflow form in the this tutorial].
You also will need to use the embed widget. You can find more about the [embed widgets in the tutorials].
Now lets get to it.
1.) Place the form widget on your page and style it anyway you like.
2.) place the embed widget in the form, where you would like your extra fields to show.
3.) Then place your code;
<input class="w-input" type="date" name="date">
Your form is not ready to go. You will receive this information in the Webflow dashboard and in your email.
This is pretty awesome. I am going to try this very soon.
Any idea if it’s possible to use custom styling on those embedded fields?
GJ! It’s always fun to see the community come up with cool new ways to do things within the tool.
Yes you can use custom styling. The easiest way is to create a class on a native form element and style it in the editor. Then apply it to the embed code. Like this;
<label for="date">Date:</label> <input class="w-input yourclassname" type="date" name="date">
Note that even though you might use capital letters in your class naming; the class is outputted all lower case, because CSS is not case sensitive.
Great, yeah that’s what i was looking for, wasn’t sure how to fill in the class names i created in the embedded field. NICE!
Thanks for this @AlexN
Do you know how I can set this up with mailchimp instead of webflow?
Any way to restrict choosing a date prior to today’s date?
You can restrict the dates available by using the min and max values in the input.
The form input for date on this site is using that technique to prevent dates earlier then September 22nd from being selected.
Hope this helps
But I need the min value to always be the current date, so I don’t want to manually go in everyday and change the min value to today’s date…I hope I’m being clear?
can you provide more specifics about your date picker ?
your’s is better than my custom date picker.
Can you feel me picking your brain ?