Forms

4 Ways to Update Form Status in Framer

4 Ways to Update Form Status in Framer

4 Ways to Update Form Status in Framer

Joseph

·

6:05

·

19K views

·

About this lesson

When a visitor on your site submits a form, there are a few different ways that we can keep them informed on the status of their submission — four ways in fact. Let’s take a look at each one.

https://www.youtube.com/watch?v=LULoacFwLAE&t=0s Intro

https://www.youtube.com/watch?v=LULoacFwLAE&t=14s Method 1: Submit Button Variants

https://www.youtube.com/watch?v=LULoacFwLAE&t=60s Method 2: Redirect

https://www.youtube.com/watch?v=LULoacFwLAE&t=93s Method 3: Overlay

https://www.youtube.com/watch?v=LULoacFwLAE&t=224s Method 4: Form Variants

https://www.youtube.com/watch?v=LULoacFwLAE&t=334s Wrap up

🌞 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:00when a visitor on your site submits a0:02form there are a few different ways that0:03we can keep them informed on the status0:06of their submission four ways in fact0:09let's take a look at each0:11[Music]0:12one in the first video in this series we0:15looked at how the default submit button0:17is a component packed with variants0:19right out of the box like loading0:22success and error which map to the0:24status of the form itself with the0:27submit button selected we can head to0:29the properties panel0:30and find a special section where we can0:32map each state of the form to one of the0:35variants we were just looking at by0:37default loading and success are already0:39here and mapped and from the plus button0:42we can choose to add error and disabled0:45States then map them to the appropriate0:47variant easy peasy in fact it's pretty0:50much set up for us from the moment the0:52form Builder hits the canvas on the0:54published site we've got our nice0:56lightweight mechanism to keep the0:58visitor informed1:00the second mechanism to confirm that a1:02form has been submitted successfully is1:04to redirect the visitor to another page1:07which we can do by selecting the entire1:09form heading to the properties panel and1:13clicking1:14redirect here we can choose which page1:16we want to redirect the visitor to1:18automatically once the form has been1:20submitted successfully I'll select my1:22thank you page and then on the publish1:25site once the form has been submitted1:27successfully the visitor will1:29automatically be redirected to the thank1:31you1:32page the third mechanism we haven't1:34talked about yet and that's to trigger1:36an overlay when the form is submitted1:39successfully or encounters an error1:42again with the form itself selected1:44we'll head over to the properties panel1:46head down to1:47overlays and click the plus icon to add1:50an overlay here we can choose a relative1:52overlay which would be positioned1:54relative to our selection like a tool1:56tip or a fixed overlay like a model that2:00takes over the screen neither is2:02necessarily right or wrong but for our2:04success message I'm going to choose a2:06fixed2:07overlay if you're new to overlays the2:09blue bar at the top of the breakpoint2:11shows us that we're now in an editing2:13mode for the overlay itself this way we2:16can eventually leave this mode and the2:18overlay won't interfere with us editing2:19the rest of the page the entire overlay2:22is essentially a special frame on the2:24layers panel and anything we put inside2:26of it will appear when the overlay is2:28triggered over on the properties panel2:30we can make the important decision of2:32when this overlay should appear since we2:35added this overlay to a form we get the2:37additional option of showing it on2:39success or error in addition to the2:42usual click and hover I'm adding a2:44success state so I'm going to leave it2:46on success I'm going to leave everything2:48almost at the defaults but I will select2:51the fill and bump the opacity up to 90%2:54so the text in the background doesn't2:56mess with the readability of the2:57foreground and the zindex which I'm3:00going to bump up to make sure this3:01overlay is on top of everything there we3:04go now to add some content I've got this3:07slick little animated thank you3:09component that I set up ahead of time3:11I'll go to the assets panel and drag it3:14onto the canvas overlays themselves3:17aren't Stacks so we'll have to use3:19absolute positioning for any layer3:21that's a direct child of the overlay I3:23want this to be completely centered so3:26I'll click the Align horizontally button3:28and align vertically3:31all good here let's preview the publish3:33site and see how it3:35looks perfect clicking away will close3:38the overlay but if you're worried about3:39visitors getting stuck you can always3:41add a button to the overlay to close it3:44the fourth and final mechanism is to3:46turn the entire form into a component3:48and create a variant for the success3:50State this allows for animated3:52transitions confirmation without leaving3:54the page and reusability all in one3:57solution let's walk through how to do it4:00first things first we've got to turn4:01this whole form into a component I'll4:04select the form rightclick and choose4:07create4:08component now we can edit our new4:10component here we can see that we've4:12just got our one default variant for the4:15normal state of the form but we can4:16click to the right of it on the canvas4:18to create a second variant the second4:21variant is going to be our success state4:23so I'll rename it to keep things4:26organized next I'm going to select all4:28these top level frames frames and press4:30the zero key to reduce the opacity to4:33zero I'm using opacity rather than4:35visibility on purpose so that we can get4:37a smooth transition then I'll head to4:40the assets panel grab my thank you4:42animation component and drag it into the4:45second variant since the frame for this4:48variant has a vertical stack layout4:49applied our new component has set itself4:52to relative positioning and is therefore4:55positioned in the content flow of the4:57stack let's actually switch the position4:59to absolute so that we can position it5:01independently of the other content we've5:03hidden now we can select the first5:05variant and drag an interaction over to5:08the second variant here we can choose5:10what sort of event should trigger this5:12transition to happen since this is a5:14form framer gives us some form specific5:16states to trigger on in our case we'll5:19choose success we can see that loading5:21and error States can be created this5:23exact same way now we should be all set5:27now when I click submit the form5:29component switches variants in place5:32when the submission goes through5:33successfully to recap we're able to5:35confirm a successful form submission5:38using four different mechanisms5:40switching between variants of the submit5:42button redirecting to another page5:45triggering an overlay and switching5:47between variants of the entire form now5:50head to framer and create some awesome5:51form submission States for your sites

Watch on YouTube ↗

More in this topic

Form Input Variants and Validation in Framer7:52
Form Input Variants and Validation in Framer
Forms18K views · 1 year ago
Creating Custom Form Submit Buttons in Framer2:11
Creating Custom Form Submit Buttons in Framer
Forms18K views · 1 year ago
Using Optional Form Input Properties in Framer5:19
Using Optional Form Input Properties in Framer
Forms13K views · 1 year ago
Introducing: Framer Forms0:48
Introducing: Framer Forms
Announcement93K views · 1 year ago
Framer Update: Forms16:32
Framer Update: Forms
Framer Update36K views · 1 year ago
Creating your first form in Framer10:59
Creating your first form in Framer
Forms108K views · 1 year ago
The Input Component5:04
The Input Component
Forms18K views · 3 years ago

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