INHOUDSOPGAVE
![](https://cdn.prod.website-files.com/5c2a9a234fdbba7439c48fa4/656600ac15e8fb306ae8447f_TQW0N2GV8-U064G7QV42G-g1e8a2ba916b-512.webp)
Ovidiu
This post will teach you How to Force Clear form Inputs on Page Load in webflow and when/why you might want to use Clear form Inputs on Page Load in Webflow in your project.
How to Force Clear form Inputs on Page Load in Webflow
Memberscripts needed
https://www.memberstack.com/scripts/84-clear-inputs-onload
Tutorial
Cloneable
![](https://cdn.prod.website-files.com/5c2a9a234fdbba7439c48fa4/65f1a5bde33d65ae69f3f0a3_Screenshot%202024-03-13%20at%2014.09.58.webp)
This guide will help you set up forms whose fields get cleared when the page is refreshed.
Once a member submits a form, the member data gets updated in Memberstack. Then, when the page is refreshed, the form fields are cleared and the data is removed from Memberstack as well.
Forcing clear form inputs on page load in Webflow
To force the clearing of form inputs on a page in Webflow, we’re going to use MemberScript #84 – Clear Inputs on Load. Follow the link to get the code you’ll need to add to your page and watch a video tutorial on how to set everything up.
Setting it up and making it work
The first thing you’ll need to do is create your form and style it however you want.
Now that you’ve got your form set up, all you need to do is add the MemberScript #84 custom code to your page, before the closing body tag.
In our custom code, you might want to edit the IDs of the fields that you want cleared on page refresh. You can do that by adding or removing form field IDs under fieldsToClear.
![A screen shot of a computerDescription automatically generated](https://cdn.prod.website-files.com/5c2a9a234fdbba7439c48fa4/65f1a4be9352620697b55f49_QmxmR-JXJ2jE1ai7fgMQzuMnjidA-cIEO0YAK7ZE7mUPyyYDqy-XTwrGB2NV0o3WSTvGyL0wgwWoGCkXVqDD215y-hdxmylffOqOnaD0hW0KyuwRZntCGt6F-49QogUP1uRScToeghPE4MhJYWJxCtQ.webp)
Conclusie
That’s everything, you can now go ahead and test the form on your live site.
If you want to use our demo project to get you started, just click the button below to add it to your Webflow site.
![](https://cdn.prod.website-files.com/5c2a9a234fdbba7439c48fa4/65f1a4bed2de608cb87e7aaa_K40NlfUzHHXwhKpbGBvoIbPs2z2hdWFk1CE1q1pjTq_N46qi-Q0UyXiUxz1laJS5fE1-B8nzHo9Vrqrv5V5ZG2zV0Kq1LZby3q9eFZcBfQTulX9l6Ivm5R5CKVU45N1WkgAxm2fQPGNtAyLVX7yNEag.webp)
Our demo can help you easily set up a form with input fields that get cleared on page load.