Discover everything we launched at Webflow Conf 2024
Read post
Blog
How to design a natural-language form in Webflow

How to design a natural-language form in Webflow

Learn to build webforms that speak your users' language.

How to design a natural-language form in Webflow

Learn to build webforms that speak your users' language.

No items found.
Written by
Mat Vogels
Mat Vogels
Mat Vogels
Mat Vogels

Earlier this week, we featured some beautiful form design patterns and got a lot of requests to demo the natural-language form. So I decided to put together a quick how-to so you can build one for your own Webflow site in no time.

Follow the steps below, and check out the final design in Webflow here.

Step 1: Add the form element to the page

First, add the form element to your canvas. Simply drag the Form Block element from the Add panel into the space you want it on the site.

Adding the form block element to the canvas
Just drag and drop the Form Block element on to the canvas.

Step 2: Add classes and style

Now we need to add classes to the individual form elements so we can style it them.

Then create and style as noted below.

I’m going to add a class to the field label and give it these styles:

Class Name: Field Label

Display: Inline

Font Family: Lato

Font Weight: 300 - Light

Font Size: 40px

Line Height: 40px

Note that you can adjust the visual styles all you like, but the display setting is key to the functionality here.

I’ll also add a class to the text field, and style it like so:

Class Name: Text Field

Display: Inline

Width: 240px

Height: 50px

Font Family: Lato

Font Weight: 300 - Light

Font Size: 40px

Line Height: 40px

Bottom Border: 2px #adadad

Opacity: 50%

Step 3: Add more field labels and text fields

We now have one field label and one form field (I deleted the extras to clean things up a little). Now I’ll simply copy and paste more fields using Command/Control+ C and Command/Control+V. For this example, I need five form fields.

Now, copy and paste form fields till have all the inputs you need.

Step 4: Tweak the form fields' widths

Because each of the form fields asks for a different piece of information, we can adjust the width to better match the content. For example, it doesn’t make sense for the age field (which will most likely have only two characters), be as long as the name field (which will have many).

To account for that, I’ll add another class to each field so I can adjust the widths accordingly.

Adjust the widths of the text fields as needed. 

Step 5: Design the success message

The form is ready to go! But we want our users to experience a pleasant success message once they’ve completed it. To design this, just click on the form to select it, and open the Settings Panel.

Click the Success button to see the form in its Success state.

Finally, style your success message. Because success messages are warm and fuzzy.

Any styles and classes we add here will only show up when the user submits the form. Here are the styles I used:

Class Name: Success Message

Background Color: #1ab07a

Padding Top & Bottom: 50px

Class Name: Success Text

Color: #ffffff

Font Size: 34px

Line Height: 50px

Now go build your own natural-language form

Of course, this is just one way to create a natural language form in Webflow. If you had trouble following the above steps, you can inspect the natural-language form in Webflow.

Do you have a unique form that you’ve created in Webflow? Share it with us (and the rest of the community)!

Unleash your creativity on the web

Build completely custom, production-ready websites — or ultra-high-fidelity prototypes — without writing a line of code. Only with Webflow.

Get started for free
Unleash your creativity on the web

Build completely custom, production-ready websites — or ultra-high-fidelity prototypes — without writing a line of code. Only with Webflow.

Get started for free
Get started for free
Last Updated
November 13, 2015
Category