Framer Update, Forms

Framer Update: Forms

Framer Update: Forms

Framer Update: Forms

Benjamin

·

16:32

·

36K views

·

About this lesson

We’re incredibly excited to introduce Forms. Enjoy 10+ input types and a uniquely freeform editing experience. Design your own inputs, focus states, checked states, loading states, success states, and so much more. Send your data via email, connect to Google Sheets, or set-up your own custom Webhook. Forms in Framer are secure too, with spam protection, rate limiting, and a fallback email. We think you’ll love it. https://framer.com/updates/forms

🌞 Start for free: https://framer.link/yt

📚 Learn more at: https://framer.link/yt-academy

💎 Join the Community: https://framer.link/yt-community

🎉 Follow on X: https://framer.link/yt-x

0:00yo my name is Benjamin and this is forms0:04in framer there's a lot to cover so0:08let's get right into it to add new forms0:11head over to the insert panel navigate0:14to the form section here you'll find0:17input components for email signups our0:20traditional embeds and right on top our0:23new form Builder I'll drag and drop this0:26onto my page to add our first new form0:30and out of the box you get three inputs0:33ready for you to customize name email0:36and location a text input an email input0:40and a select control let's have a look0:43at the structure first within the forms0:45you get a bunch of labels these labels0:49are just stacks and they serve to0:51connect the text layer within to the0:53matching input this is great for0:56accessibility and it also means people0:58can click the label to Focus the input1:01next let's start customizing I'll select1:04the name input and let's first update1:06the color I'll set it to1:10Black then let's customize the type1:15face I'll pick a custom type1:18[Music]1:25face then let's change the fill color to1:29white1:32and then I'll go ahead and remove the1:34border and replace it with some stacked1:37Shadows I'll speed up this section but1:40the summary is I'm adding three shadows1:43one as a solid outline one as a solid1:46drop shadow and one as a soft drop1:49shadow all right and this is what we1:52have so far just some lightweight1:56customization and let's do the same to1:59the lay2:00I'll select the text layer here and I'll2:02be sure to give it the same custom type2:05face and now that we've customized this2:08first input how do we bring over these2:11styles to the other inputs a simple way2:14is to right click and copy the style and2:19I'll often use the keyboard shortcut for2:22this which you can find in the2:25menu and then we can paste this style2:28onto the other2:32inputs and I'll do the same for the text2:35layers using the keyboard shortcuts and2:39finally the select control as well by2:42making all these elements directly2:45selectable on a canvas we've achieved a2:48uniquely flexible editing experience for2:51example to split up our name input I'll2:54select the label command D to duplicate2:58double click on the text label and write3:01first and last3:03name then I'll click on the first input3:07and I'll update a few properties here3:10the name is what we'll see in the data3:12later when you submit I'll update the3:16placeholder and I'll make this input3:18required then I'll select this input and3:21I'll do the same thing3:24here and now if we want to change the3:27layout and bring these on the same line3:30I'll select both and I'll wrap them in a3:34[Music]3:37stack then I'll quickly set overflow to3:40visible to ensure it doesn't clip our3:42shadows and I'll change the3:45direction I'll also update the Gap and3:48just like that we've adjusted the design3:51of our form and I can maybe select the3:54form and make it a bit wider to give our3:57inputs a bit more room4:00so forms in framer are easy to customize4:04and uniquely flexible when it comes to4:06making them your own now I'll go back to4:08our simpler version to talk about Focus4:12States very similar to hover effects and4:16loop effects we can select our input and4:19add a focus effect this allows us to4:22customize the focus state with some4:25lightweight styling like fill border and4:28Shadow here I'm swapping the default4:31border with a shadow with a one pixel4:34spread and a blue color replacing the4:37Shadows we designed earlier and using4:40the copy and paste style shortcuts I can4:43bring over these Focus effects to the4:46email and location inputs and instead of4:49copy and pasting Styles I can also multi4:52select all of these4:54inputs and for example add a transition4:57to our Focus effect and there we go now5:02before we give this a preview let's5:04quickly cover the submit5:09button the submit button is just a5:12normal component with variance and you5:15can map these variants to the form State5:19using this UI here now let's doubleclick5:23on the button to start customizing here5:26we can see all of the variants and by5:28default we give all of the variants you5:31might need for your form and here we can5:34make a few edits I'd like a bit of a5:36darker color and I'll update the hover5:39State as well then I'll select the text5:42labels in the default success and error5:46variants and I'll set them to the same5:49custom type face we've been using in our5:52form this time using a medium weight and5:56if you would like you could customize5:58everything within the these variants6:01down to the actual spinner which is just6:04a conic gradient with a loop effect for6:07now I'll go back to the homepage and see6:10how this looks in6:12context I think we're almost there maybe6:15I'd like to go back and add a subtle6:18Shadow to the6:21button and I think we're good to go so6:23let's give this our very first6:27preview here we can see our Focus States6:31our text color that we changed from the6:33placeholder color our custom6:38fonts and our select control which we'll6:42talk about more later on in the video6:45now we've customized our simple form but6:47it doesn't do anything yet when you hit6:50submit so let's talk about6:55connectivity sending your form data6:58somewhere is incredible ly easy with the7:01form selected head over to the form7:04properties and here we can pick between7:07sending an email using a web hook or7:10sending our data to a Google sheet I'll7:14go with email first and here we can7:17customize the email details like the7:20email recipient the email name the7:24subject and even the email body which is7:28some copy proceed reading the form data7:31that's pretty much all we need to do so7:34let's go back to the preview here fill7:37in our form again and then see what7:42happens this time I'll hit submit and we7:45can also see the loading and thank you7:48states of our button and would you look7:50at that I've got mail this is the email7:53framer will send me anytime I get a7:56submission on a form on my site7:59with all of the messaging customizable8:02and the data presented in a need list we8:06support multiple destinations so you can8:08send your data to multiple places at8:11once but for now let's remove email and8:15have a look at connecting it to Google8:18Sheets I'm then presented with this8:20simple pop out where we can connect it8:23to a sheet and we can define a fallback8:26email so we can let you know when their8:29services stop working so let's hit8:32connect and start the authentication8:35flow if you have multiple accounts first8:37you have to pick one of your Google8:39accounts then you might have to sign in8:43and finally give us access so we can8:46send the data to a Google sheet then8:49back in framer we can now hit add to8:52create a new sheet which we can give a8:55name here I'll just call it demo and8:58then hit create create and that's all9:01there is to it now let's give our form a9:05preview fill it out9:09again and then have a look at the Google9:13sheet there's an easy way to access our9:17sheet right from within framer I can9:20reselect the9:22form open the pop out and then clicking9:26here will open the sheet and low and9:29behold there's our submission data9:32automatically added to our Google sheet9:35ready for us to export or connect to9:38other third-party services so that's how9:41you can connect to Google Sheets next9:45let's talk about different input9:48types when you select a form you get a9:51plus icon right here on the canvas and9:53clicking it allows you to easily add new9:56inputs to your forms for example we9:59could add a checkbox to this10:02form or a radio group while there are10:06four highlevel options in this menu the10:09generic input option supports many10:11different types of inputs right from10:14within the property panel and each input10:17type has a unique set of properties you10:20can access by clicking on the input10:22header like the select control where you10:26get an array of options allowing you to10:28design your drop- down menus for example10:32I can quickly add two more cities I need10:36a value that's for the data and then a10:39visual title that will appear in the10:43menu and then we can even add a little10:46line to act as a separator allowing us10:49to create grouped10:54menus or the checkbox which also has a10:58few unique proper propes like a checked11:00State and a checked effect which is very11:05similar to the radio group with the11:08biggest exception being that all radio11:11elements need to have a shared name11:13value so all of these input types are11:16similarly customizable and flexible they11:20all have a focus State and inputs like11:24checkbox and radio also get a checked11:27State let's have a look at a few more11:30examples of these different types of11:33inputs we also support date and time11:36inputs which you can access through the11:39type dropdown on any generic input we've11:43ensured these get consistent11:44placeholders across various browsers and11:48we give them a nice default icon inputs11:51like date and time are useful for events11:54or any type of scheduling and booking12:00next is the select control we already12:03took a look at this one but this is a12:06more realistic example of how it could12:08be implemented in a custom12:14form next up another example of a radio12:18group what's especially useful here is12:21that the labels are also just text12:23layers and they will be clickable out of12:26the box this also applies to checkboxes12:29and you can even add inline links here12:32with complete support for link Styles12:35color styles and text Styles next up12:38let's have a look at one of my favorite12:40form features component support you can12:43select any label containing the text12:46layer and an input and turn it into a12:49reusable component this not only allows12:52you to use variables it also allows you12:55to design your own focus and blur States12:59here I've designed a custom Focus state13:02with a placeholder that animates into a13:05label just using a single text layer and13:08by selecting the input and dragging from13:11the interaction connector we can Define13:14our own focus and blur State and switch13:17to Any Given variant we can even take13:21into account whether or not a user has13:23typed in the input or in other words13:26does this input have a value or or not13:29so on Focus I'll switch to the second13:33variant and this is where things get13:35interesting because on blur we only want13:38to switch to the third variant when the13:41user has typed in the input so when the13:44value is set otherwise we simply want to13:47switch back to the default variant so on13:51blur when the value is empty three13:54interactions three variants let's go13:57ahead and give this a preview14:00now when we focus the input we switch to14:04the focus variant and our placeholder14:07animates into a label and if we unfocus14:11or blur the input after having typed in14:15the input we properly switch to the14:18third variant ensuring the value and the14:21placeholder never overlap so you can use14:24components to design your own14:26interactive States next let's talk about14:29what you can do after having14:31successfully submitted a form here I've14:34designed a custom thank you page with a14:37few simple appear effects I can use the14:39form to automatically redirect to this14:42page after a successful submission with14:45the form selected head over to the14:47property panel and you'll find a14:49redirect property here you can select14:52any one of your pages I'll select the14:55thanks page and that's all there is to14:58it14:59now when we fill out the form we will be15:03automatically redirected to the thank15:06you15:08[Music]15:14page and there we go this gives you a15:17lot of control but what if you wanted to15:20just update the form itself we have an15:22option for this as well now by default15:25we'll update the button state but you15:27can also turn your entire form into a15:30component and then use variance and15:34interactions to switch to a different15:37state on submit so here I've removed the15:41redirect and I can select my form and by15:44dragging the interaction connector I can15:46tell the form on success switch to my15:50second variant in which I've just hidden15:53all of the inputs and designed a custom15:55thank you15:57state so so now when we fill out the16:00form we'll stay right here on this page16:04but our form will instantly hide and16:07instead we'll switch to our custom16:10variant and that's pretty much it for16:13this video we're super excited to share16:15forms with you thank you so much for16:18watching and stay tuned for more updates16:22coming soon

Watch on YouTube ↗

More in this topic

Framer Update: Logo Shaders2:05
Framer Update: Logo Shaders
Framer Update12K views · 1 month ago
Framer Update: CMS 3.04:13
Framer Update: CMS 3.0
Framer Update14K views · 1 month ago
Framer Update: Holo Shader1:46
Framer Update: Holo Shader
Framer Update6K views · 2 months ago
Framer Update: Auto Translate3:09
Framer Update: Auto Translate
Framer Update4K views · 2 months ago
Framer Update: Stack Sorting and Bento Grids2:16
Framer Update: Stack Sorting and Bento Grids
Framer Update7K views · 2 months ago
Shader: Chromatic Aberration1:56
Shader: Chromatic Aberration
Framer Update7K views · 2 months ago
Framer Convert5:42
Framer Convert
Framer Update13K views · 3 months ago
Framer Update: Flow Effect in Layout Templates2:12
Framer Update: Flow Effect in Layout Templates
Framer Update10K views · 3 months ago

Create a free website with Framer, the website builder loved by startups, designers and agencies.