Made in Builder

Made in Builder

×

Developers

Product

Use Cases

Pricing

Developers

Resources

Company

Get StartedLogin

Product

Features

Integrations

Talk to an Expert

Pricing

Blog

Home

Resources

Blog

Forum

Github

Login

Signup

×

Visual CMS

Drag-and-drop visual editor and headless CMS for any tech stack

Theme Studio for Shopify

Build and optimize your Shopify-hosted storefront, no coding required

Resources

Blog

Get StartedLogin

Creating Forms in Builder

You can create or embed forms in any Builder content with these tips.

This document illustrates two ways of making a form in Builder. One popular way is to use other services, such as Google forms or Type form and embedding the form into your Builder page. The more advanced way is to create a custom form completely inside of Builder and connect it to your backend. Here we will discuss:

Embedding a form using URL

To export your Google form, click Send in your Google Form. It gives you three different options on how to share this form, we are going to use the URL. Copy the form's URL. Navigate back to Builder and drag and drop the embedded code component onto your page. Click Edit, and paste the URL.

Embedding a form using custom code

If embedding your form using the URL does not work, you can use custom code. In Google forms, there is an embedded code option. Copy this code, navigate back to Builder, and drop in the custom code component. Click edit, and paste the code into the editor.

👉Developer permissions are required to use the custom code field

Creating a form in Builder

To make a custom form in Builder, you will either need to be a developer or have one handy because this form will need to be wired up to your backend. To begin, drag and drop the form component into your page. Now, you can customize and style the form however you want.

If you decided to add more inputs, make sure you are giving them each the correct name. This is how the information entered gets sent back and how it knows what each value entered is assigned to.

Connecting your backend

⚠️ If you choose the "Send to Email" option, the max size of the form attachments will be 30MB.

Now, we need to hook our form up to our backend. The first way you can do this is you can have a URL to send it to, either with JavaScript or without. This is when you’ll need your developer involved.

There is also a more advanced option to fully customize how your form sends. If you navigate to the actions section in the "Data" tab, you can create a new action with the type "submit". Then, you can handle the form submission manually. If you want to create intricate forms (e.g. size availability, color selection for a specific product), this is where you can do so. If this is something you'd like to do, we'd recommend watching some of our tutorials such as using your custom react components, connecting your api data to Builder, and State and actions. Once you have your form finished, you can save it as a template and use it on any page. The form will already have the functionality and styling applied, so you don't have to redo any code.

Adding inputs to a form

To add more inputs to a form:

Select the input you'd like to change and navigate to the Options tab. You'll see the default input type is "text". Select the dropdown and choose the input type you need.

Next steps

For more interactive content development, read about Building Interactivity Using State and Actions.



Need Expert help?

Submit a project to our partners, BuildQuick, and be matched with a Builder expert.

Submit a project

Was this article helpful?