How can I display a loading icon for a specific amount of time after submitting a form in Webflow, to give time for the Zapier process to update Google Sheets and the Webflow CMS?
Published on
September 22, 2023
To display a loading icon after submitting a form in Webflow, you can follow these steps:
- Create a custom form submission interaction: Open the interactions panel and create a new custom interaction triggered on form submission.
- Add a loading element: Drag and drop a div block or any other element that you want to use as a loading icon onto your page.
- Style the loading element: Customize the appearance of the loading element using the design panel. You can set the position, size, color, animation, and any other desired styling.
- Hide the loading element by default: In the interactions panel, set the initial state of the loading element to "display: none" so that it is hidden when the page loads.
- Show the loading element on form submission: In the interactions panel, add a new action to show the loading element when the form is submitted.
- Set a timer to hide the loading element: To display the loading icon for a specific amount of time, add a timer in the interactions panel to delay the action of hiding the loading element. Set the duration of the timer to the desired time in milliseconds.
- Hide the loading element after the timer ends: In the interactions panel, add another action to hide the loading element after the timer ends. You can set the duration of this action to zero so that the loading element is hidden instantly.
By following these steps, you can display a loading icon for a specific amount of time after submitting a form in Webflow, giving Zapier and other backend processes enough time to update Google Sheets and the Webflow CMS.
Questions for better SEO:
- How can I display a loading icon after submitting a form in Webflow?
- What is the process to add a loading element in Webflow after form submission?
- How to create a custom form submission interaction with a loading icon in Webflow?