Creating your first form with Framer

Framer
20 Jun 202410:59

Summary

TLDRThis tutorial showcases the ease of creating interactive forms in Framer without third-party components. It demonstrates how to add, customize, and style a form, including setting up input types and properties for validation. The guide covers styling techniques for form elements and the submit button, as well as configuring form states and redirection upon submission. Finally, it explains how to send form data via email and includes built-in spam protection, making it a comprehensive guide to form creation in Framer.

Takeaways

  • πŸ“ The new Form Builder in Framer allows for the creation of fully functional interactive forms without the need for third-party components or integrations.
  • πŸ” Forms in Framer are not rigid code components but are completely customizable, offering freedom in layout and styling.
  • πŸ“‘ The top-level frame for the form includes special settings for form submission actions, but is otherwise a regular stack that can be styled and positioned.
  • 🏷 Each input within the form is grouped with a label, which has an accessibility tag applied, improving accessibility and SEO.
  • πŸ“ The text box within each label is a regular text box, but it's recommended to keep it in place for accessibility and SEO purposes.
  • 🌐 The input layer is special as it includes browser native validation to ensure properly formatted text and can be customized with different types like text, email, number, etc.
  • πŸ“ The input name determines how submitted data is labeled and helps the browser with autofill information if enabled.
  • πŸ“š Forms can include various types of inputs like text, select, checkbox, and radio, each with its own customizable properties.
  • 🎨 Styling the form elements is similar to styling any other element in Framer, with nuances like text color for typed text and placeholder text.
  • πŸ”„ Copying and pasting styles from one input to another simplifies the styling process for multiple form elements.
  • πŸ”„ The submit button is a component with built-in hover and press states, and can be styled to reflect the status of the form.
  • πŸ“§ Once a form is submitted, the data can be sent via email, webhook, or directly to a Google sheet, with options for redirecting to a thank you page.

Q & A

  • What is the new form Builder feature in Framer?

    -The new form Builder is a feature that allows users to create fully functional interactive forms natively in Framer without the need for any third-party components or integrations.

  • How can you add a form to your Framer project?

    -To add a form, you can go to the insert menu, scroll down to forms, select the new form Builder, and drag it onto the canvas.

  • What is the default layout for the form frame in Framer?

    -The default layout for the form frame in Framer is a vertical stack layout.

  • What special settings are available for the form frame when a user submits the form?

    -The form frame has special settings for what happens when a user submits the form, which include actions like sending an email, triggering a webhook, or redirecting to a thank you page, but these are discussed later in the tutorial.

  • How are the form labels in Framer different from regular frames?

    -The form labels in Framer are different because they have an accessibility tag called 'label' applied to them, which helps with accessibility, SEO, and makes the text layer within it clickable to focus the matching input element.

  • What are the four different categories of input elements available in Framer's form Builder?

    -The four different categories of input elements are text input, select (drop-down menu), checkbox (to toggle options on or off), and radio (to choose a single item from a group).

  • What is the purpose of browser native validation in the input elements?

    -Browser native validation ensures that visitors add properly formatted text to the input fields, such as validating the format of an email address or ensuring the text is a number.

  • How can you customize the input field properties in Framer's form Builder?

    -You can customize the input field properties by choosing an appropriate type for each input, setting the name of the input, editing the placeholder text, deciding if the field is required, and adding other properties from the plus button.

  • What is the process of styling the input fields in Framer's form Builder?

    -Styling the input fields involves adjusting the fill, border, corners, text color, and placeholder text color. It also includes setting effects for when the field is clicked and focused, like adding a fill, border color, and shadow for a glow effect, and adding a transition for smooth focus and defocus states.

  • How can you apply the same style to multiple input fields in Framer's form Builder?

    -You can right-click the finished input field, hover over 'Copy', choose 'Copy Style', then Shift-click the other inputs, right-click, hover over 'Paste', and choose 'Paste Style'.

  • What options are available for handling the submitted data from the form?

    -The options for handling submitted data include sending it via email, using a webhook to connect with third-party services, or populating data directly to a Google sheet.

  • What is the purpose of the submit button in Framer's form Builder?

    -The submit button in Framer's form Builder is used to submit the form data. It comes with built-in hover and press states, as well as variants to reflect the status of the form, such as loading, success, error, and disabled states.

  • How can you redirect visitors to a specific page after a successful form submission?

    -You can redirect visitors by selecting the top-level frame for the form, going to the 'Redirect' section in the properties panel, and setting the URL to the desired page, such as a thank you page.

  • What spam protection measures are included with Framer's form Builder?

    -Framer's form Builder includes state-of-the-art spam protection that works quietly in the background to prevent unwanted messages from bots and crawlers.

Outlines

00:00

πŸ“ Introduction to Framer's Form Builder

This paragraph introduces the new Form Builder feature in Framer, which allows users to create interactive forms without any third-party components or integrations. The tutorial promises to demonstrate the ease of building, styling, and publishing a form to the web without coding. The process begins with adding a form to the canvas using the insert menu, and customizing it by examining its structure, which includes a frame for the entire form and label frames for each input. The paragraph emphasizes the flexibility of form design in Framer and the special properties of the input elements, such as browser native validation and auto-fill capabilities.

05:02

🎨 Customizing Form Elements and Styles

The second paragraph delves into the customization of form elements and their styles. It explains how to style input fields like text boxes and frames, focusing on text colors, placeholder text, and effects when the field is focused or unfocused. The paragraph also covers adding transitions for smooth visual feedback and the process of copying styles from one input to others for consistency. Additionally, it discusses the styling of the submit button, including hover, press, and error states, and the mapping of form states to these styles. The paragraph concludes with setting up form submission options, such as email notifications and spam protection, and the ability to redirect users post-submission.

10:16

πŸš€ Finalizing and Publishing the Form

The final paragraph summarizes the steps involved in setting up a custom form using Framer's Form Builder. It outlines the process of deleting unnecessary elements, adding required inputs, setting field properties, adjusting layout and style, and choosing the destination for submitted data. The paragraph encourages users to start creating functional forms for their sites and ends with a brief recap of the tutorial's key points, including the ease of use and the comprehensive features of the Form Builder.

Mindmap

Keywords

πŸ’‘Form Builder

Form Builder is a tool that allows users to create interactive forms within the design software Framer. It is a key component in the video's theme as it enables the creation of forms without any coding. The script demonstrates how to use the Form Builder to add and customize forms, emphasizing its ease of use and integration within the Framer environment.

πŸ’‘Interactive Forms

Interactive forms are web elements that allow users to input data, which can be sent to a server or processed in some way. In the context of the video, interactive forms are created natively in Framer, offering a user-friendly way to gather information from website visitors, as shown when the tutorial demonstrates adding and styling a form.

πŸ’‘Third-Party Components

Third-party components refer to software elements created by entities other than the primary software vendor. The video mentions that the new Form Builder in Framer eliminates the need for these external components for form creation, streamlining the process and ensuring compatibility within the Framer ecosystem.

πŸ’‘Customizing

Customizing in the video refers to the process of modifying the default settings and appearance of the form elements to fit specific design requirements. The script explains how to customize the form's layout, style, and behavior, such as changing the form's background, text color, and adding special effects when the form fields are focused.

πŸ’‘Accessibility

Accessibility in the context of the video pertains to making web content usable for people with disabilities. The script highlights the importance of using 'label' tags for form inputs to improve accessibility and SEO, as well as ensuring that the form elements are easily navigable and understandable for all users.

πŸ’‘Input Types

Input types define the kind of data that can be entered into a form field. The video explains different input types such as 'text', 'textarea', 'email', 'number', 'phone', 'URL', 'date', and 'time', which are used to validate and format the input data accordingly, ensuring that the form collects the correct information in the desired format.

πŸ’‘Placeholder Text

Placeholder text is a hint within a form field that describes the expected value of the input. In the script, the tutorial shows how to edit the placeholder text to guide users on what to type in the form fields, enhancing user experience by providing clear instructions.

πŸ’‘Validation

Validation in the video refers to the process of checking that the input from users conforms to certain rules or formats. The script discusses browser native validation for form inputs, which ensures that the data entered is properly formatted, such as an email address or a phone number.

πŸ’‘Styling

Styling in the context of the video is about applying visual designs to the form elements to match the website's aesthetic. The tutorial demonstrates how to style the form, including changing background colors, adding gradients, rounding corners, and adjusting text colors and effects for different states like focus and hover.

πŸ’‘Submit Button

The submit button is a crucial part of any form, used to send the entered data for processing. The video script describes how to style and configure the submit button, including setting up different states like hover, press, loading, and error, to provide feedback to the user during form submission.

πŸ’‘Webhook

A webhook is a way for an app to provide other applications with real-time information. In the video, it is mentioned as one of the options for where the submitted form data can be sent, allowing for integration with third-party services and automating processes based on form submissions.

πŸ’‘SEO

SEO stands for Search Engine Optimization, which is the process of improving the visibility of a website in search engine results. The script points out the use of 'label' tags in form inputs to aid with SEO, as they help search engines understand the content and context of the form fields.

πŸ’‘Spam Protection

Spam protection in the video refers to the built-in mechanisms to prevent unwanted form submissions from bots and crawlers. The script mentions that the form comes with state-of-the-art spam protection to ensure that only legitimate form submissions are received.

Highlights

Introduction of the new form Builder in Framer, allowing for fully functional interactive forms without third-party components.

Demonstration of building a form, styling it, and publishing it to the web without coding.

Explanation of the form's anatomy and customization capabilities in Framer.

The form's layout flexibility and styling options, including padding, borders, and shadows.

Use of label frames for accessibility and SEO, and their special clickable text layer feature.

Description of the input layer's properties and browser native validation for proper text formatting.

Different input types available, such as text, select, checkbox, and radio, each with customizable properties.

How to set input names for data labeling and autofill functionality.

Adding and customizing additional text inputs and textareas for form messages.

Inclusion of a checkbox input for newsletter opt-ins and deletion of unnecessary form fields.

Styling the form frame with gradient fills and corner rounding for aesthetic appeal.

Customizing input field styles, including text color, placeholder color, and background effects.

Adding interactive effects like glow and transition for focused input fields.

Copying and pasting styles to streamline the styling process for multiple form elements.

Customization of the submit button with hover, press, and loading states.

Mapping form states to button variants for a cohesive user experience.

Redirection options post form submission, such as to a thank you page.

Setting up data submission destinations, including email, webhook, or Google Sheets.

Implementation of spam protection to prevent unwanted form submissions.

Final steps for publishing the form and testing its functionality.

Transcripts

play00:00

the new form Builder brings fully

play00:01

functional interactive forms natively to

play00:04

framer without the need for any

play00:06

third-party components or Integrations

play00:09

in this tutorial I'll show you just how

play00:10

easy it is to build a form style it and

play00:13

publish it to the web without writing a

play00:15

single line of

play00:20

code to add a form we can head to the

play00:23

insert menu go down to forms grab the

play00:27

new form Builder and drag it onto the

play00:29

canvas

play00:30

boom we've got a default form to start

play00:32

customizing let's take a look at the

play00:34

anatomy of this thing one of the coolest

play00:36

things about forms and framer is that

play00:38

they aren't some rigid code component

play00:41

they're completely free form no pun

play00:43

intended which means you can lay them

play00:45

out and style them with complete Freedom

play00:48

at the top level we get a frame for the

play00:50

entire form which comes with a vertical

play00:53

stack layout applied by default which

play00:55

makes a lot of sense this Frame also has

play00:57

a few special settings for what happens

play00:59

when a vis submits the form which we'll

play01:02

talk about later on but besides that

play01:03

this is a regular stack that we can

play01:05

resize or reposition change the Gap

play01:09

padding or even add fills borders and

play01:13

shadows but we'll style this a little

play01:15

bit later on within the parent frame for

play01:17

the form we have a set of frames each

play01:19

called label that group each input with

play01:22

a text box again these labels are just

play01:25

regular frames but you can probably tell

play01:27

by the icon on the layer list that these

play01:28

are a little bit special

play01:30

the icon comes from the fact that in the

play01:32

accessibility section of the properties

play01:34

panel this frame has a tag called label

play01:37

applied to it in addition to helping

play01:39

with accessibility and SEO this label

play01:41

element is also what makes the text

play01:43

layer within it clickable to focus the

play01:45

matching input element on that note

play01:48

within each label frame we have a text

play01:50

box and the input itself want to know

play01:53

what's special about this text box

play01:55

nothing it's just a text box do what you

play01:58

want with it but I do recommend keeping

play02:00

it where it is for the sake of

play02:01

accessibility and SEO just know it's a

play02:04

regular text box the input layer is

play02:07

where the magic happens it also works a

play02:09

lot like a regular frame but this is the

play02:12

most special element we've looked at so

play02:14

far before we dig into its properties

play02:16

the first thing to know is that this is

play02:18

one of four different categories of

play02:20

input this happens to be a text input

play02:22

but there's also select which is a drop-

play02:25

down menu of options we set checkbox to

play02:28

toggle one or multiple options on or off

play02:31

and radio to choose a single item from a

play02:33

group of options each category of input

play02:36

has its own properties you can customize

play02:39

but let's get back to this text input

play02:41

because there's more to it than meets

play02:42

the eye these inputs actually have

play02:44

browser native validation to make sure

play02:46

visitors add properly formatted text we

play02:49

can tell the browser what to expect by

play02:51

choosing an appropriate type for each

play02:53

input we can choose between text for a

play02:56

single line of text like a name text

play02:59

area for multiple lines or even

play03:00

paragraphs of text email which will

play03:03

validate the format of an email address

play03:05

and prompt mobile browsers to adjust the

play03:07

keyboard number which validates that the

play03:10

text is a number and prompts mobile

play03:12

browsers to switch to a keyboard with

play03:14

number Keys phone which will switch

play03:16

mobile browsers to a phone keypad much

play03:19

easier to type on URL which also prompts

play03:22

mobile browsers to adjust the keyboard

play03:24

date which will provide the browser's

play03:26

native date picker and time which will

play03:29

provide the browser's native time picker

play03:31

I'll keep this first option set to text

play03:33

for visitors to type their own name next

play03:36

we have the name of the input which

play03:38

determines how the submitted data should

play03:40

be labeled when we receive it but before

play03:42

you start making up crazy words because

play03:44

you think you're the only one that will

play03:45

see it the name of the input also helps

play03:47

the browser figure out what info should

play03:50

autofill if it's enabled we can also

play03:53

edit the placeholder text that appears

play03:54

before a visitors typed anything decide

play03:57

if this field is required and add quite

play03:59

a few other properties from the plus

play04:01

button for our purposes we're going to

play04:03

want a couple more inputs so I'll select

play04:05

the frame for the entire form and click

play04:08

the blue plus button at the bottom I'll

play04:11

choose to add another text input this

play04:13

one will be to write the body of the

play04:14

message so let's change the text in this

play04:17

little text box to say

play04:19

message then we got to change the input

play04:21

type to text

play04:22

area change the name to

play04:25

message and for the placeholder text

play04:28

I'll just put hey

play04:30

great another form field ready to go

play04:32

let's go ahead and add one last input a

play04:35

checkbox to allow folks to opt into

play04:37

receiving our newsletter and what do you

play04:40

know the default text is exactly what we

play04:42

needed what are the odds of that while

play04:44

we're at it we don't need this location

play04:47

input so I'll grab that whole label

play04:49

frame and press delete looking good now

play04:52

we're ready to start playing around with

play04:54

the style of things let's start with the

play04:56

frame for the entire form I'm going to

play04:58

give it a fill and create a super subtle

play05:01

gradient from 8% gray to 6% gray next

play05:07

I'll round these Corners to a radius of

play05:08

about 20 cool now on to the input Fields

play05:12

themselves the key takeaway here is that

play05:15

you style these just like you'd style

play05:17

anything else it's really just a hybrid

play05:18

of a text box and a frame with a couple

play05:21

small nuances one of which is that we

play05:23

have two different text colors the first

play05:27

is for the text that a visitor actually

play05:29

types which I'll change to White so it

play05:31

stands out and the second is the color

play05:34

of the placeholder text which I'll keep

play05:36

diminished slightly with a 60% gray I'll

play05:39

also remove the

play05:40

border and set the fill to white at a

play05:43

super low

play05:44

opacity that's pretty much what I'm

play05:46

going for for when this field is

play05:48

unfocused but we can also change the

play05:50

effect of how the field looks when it's

play05:52

clicked on and focused I'll click effect

play05:55

and start by adding a fill that's super

play05:58

dark blue

play06:00

then tweak the Border color slightly to

play06:02

match that same Hue of

play06:05

blue then get a little crazy by adding a

play06:08

shadow to create a little glow around

play06:09

the

play06:11

field I'll choose My Brightest

play06:14

blue set the X and Y to zero to keep the

play06:17

glow centered crank the blur way up to

play06:21

30 and knock the spread down to -10

play06:25

there we go nice soft subtle glow the

play06:28

last thing is adding a transition so

play06:30

this glow can come in smoothly the

play06:32

defaults are fine let's preview

play06:35

it awesome we get the border and the

play06:38

Beautiful glow fading in on focus and

play06:40

fading away when we click away you can

play06:43

get even more crazy with focus and

play06:45

defocus states and interactions by

play06:46

turning inputs into components but we'll

play06:49

save all that for a different tutorial

play06:51

so we've got the style of our first

play06:53

input dialed in do we really want to do

play06:55

it over again for these other two I

play06:58

don't think so we you can right click

play07:00

the finished one hover over copy and

play07:02

choose copy style then shift click the

play07:06

other

play07:06

inputs right click hover over paste and

play07:10

choose paste style done deal let's give

play07:13

it a

play07:15

preview

play07:17

beautiful the last piece of the form is

play07:19

the submit button which is already a

play07:20

component right out of the box which we

play07:22

can press enter to go in and edit within

play07:26

the component you'll find Hover and

play07:27

press States as well as VAR variants to

play07:29

reflect the status of the form you can

play07:32

Le these Styles as they are or style

play07:33

them however you'd like I'll give the

play07:36

primary variant a blue fill which

play07:39

Cascades down to the other variants

play07:41

except the hover and press States since

play07:43

those already have a color override I'll

play07:45

make hover a darker

play07:47

blue and the Press State the darkest

play07:50

blue cool the loading State already has

play07:53

this sweet little animated spinner I'm

play07:55

going to leave these alone and head down

play07:57

to the error state

play08:00

I'll change the fill to a nice solid

play08:04

red and fix this text contrast by

play08:07

changing it to a super light

play08:10

pink there we go I'm happy with how each

play08:12

of these looks let's head back to the

play08:14

homepage if we scroll down the

play08:16

properties for the submit button

play08:17

component you'll see it has a special

play08:19

section where we can map each state of

play08:22

the form to one of the variants we were

play08:24

just looking at by default loading and

play08:26

success are already here and already

play08:28

mapped and from the plus button you can

play08:31

choose to add error and disabled States

play08:34

and map them to the appropriate variant

play08:36

on the topic of a successfully submitted

play08:38

form we also have the option to redirect

play08:40

the visitor to a specific page like a

play08:43

thank you page let's select the top

play08:45

level frame for this form head down to

play08:48

redirect in the properties panel and in

play08:51

my case I do have a little thank you

play08:52

page to let visitors know that we'll get

play08:54

back to them within 48 hours but we're

play08:57

missing one crucial step deciding where

play09:00

the submitted data actually goes with

play09:02

the form frame still selected we get

play09:04

three choices for where the submitted

play09:06

data can be sent we can either pick one

play09:09

or combine several we can choose email

play09:13

which will send each submission directly

play09:15

to our inbox web hook to connect with

play09:18

third party services or populate data

play09:21

directly to a Google sheet for my

play09:23

purposes I'll keep it simple and choose

play09:25

email then choose a name to display for

play09:27

the sender

play09:29

set the subject line for these

play09:31

submissions and even add some body copy

play09:34

with additional context simple as that

play09:36

now each time the form gets submitted

play09:38

we'll receive an email with all the info

play09:41

forms also come with state-of-the-art

play09:43

Spam protection that works its magic

play09:45

quietly in the background behind the

play09:47

scenes preventing unwanted messages from

play09:49

Bots and crawlers let's publish and test

play09:52

it out

play09:54

publishing done open in the

play09:57

browser Joseph

play10:00

Josephs framer

play10:16

docomo let's recap what goes into

play10:18

setting up a custom form drop in the

play10:20

form Builder delete what you don't need

play10:23

add the inputs you do need set your

play10:26

Field properties on the inspector adjust

play10:28

the layout and style in to your liking

play10:30

and choose where to send the data that's

play10:33

it now head to framer and start creating

play10:36

beautiful functional forms for your site

play10:43

[Music]

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
Form BuilderInteractive FormsWeb DesignUser InterfaceNo-CodeCustomizableAccessibilitySEO FriendlyMobile KeyboardForm Submission