Webflow sync, pageviews & more.
NEW
Answers

How can I hide a form in Webflow on submit and display a confirmation div without interfering with the standard Webflow form JavaScript and without knowing JavaScript?

To hide a form in Webflow on submit and display a confirmation div without knowing JavaScript, you can utilize Webflow's built-in interactions and form settings. Here's a step-by-step guide:

Step 1: Create your form
Add a form element to your Webflow project. Customize the form fields according to your requirements.

Step 2: Design the confirmation div
Create a div or section in the desired location to display the confirmation message. Design it with the content and styling you wish to present after form submission. Initially, set its display property to "none" to hide it.

Step 3: Add a form submission interaction
Select the form element and go to the Interactions panel. Click on the '+' icon to add a new interaction.

Step 4: Set up the trigger
Choose the "Form Submission" trigger from the dropdown. This trigger activates the interaction when the form is submitted.

Step 5: Hide the form
Click on the 'Start' action and choose 'Hide' from the options. Select the form element you want to hide. This will ensure that the form is hidden when the interaction starts.

Step 6: Display the confirmation div
Click on the 'Start' action again, but this time choose 'Show' from the options. Select the confirmation div you want to display.

Step 7: Publish your site
After designing and setting up the interaction, publish your site for the changes to take effect. Test your form by submitting it to see the interactive behavior in action.

By following these steps, you can hide the form upon submission and display a confirmation div without any knowledge of JavaScript. Webflow's interactions feature provides a visual and intuitive way to control the behavior of your site elements.

Rate this answer

Other Webflow Questions