The optimal solution for teams that want absolute control of their forms data.
Initiate the collection of form submissions from your Vue.js form using formzillion.
Simply create your form in formzillion and insert your form-id into your form.
This guide will demonstrate the quick process of adding a contact form to your Vue.js project and connecting it to Formzillion for submission handling.
How to create a Vue.js Contact Form
Sign in to your Formzillion account and create a new form with name Vue.js Contact Form or a similar identifier. Formzillion will assign a unique form ID specifically for identifying your Vue.js form.
To initiate the project setup, let's follow the instructions provided in the Vue.js Getting Started documentation. Open your terminal and execute the following command to create a new site:
Copy
To initialize a Vue project, execute the "create-vue" command, which is the official Vue project scaffolding tool. During the setup process, you will be presented with prompts to configure various optional features, including TypeScript and testing support:
Copy
If you're uncertain about an option, you can simply press Enter to choose the default, which is usually "No" for now. After successfully creating the project, refer to the provided instructions to install the necessary dependencies and initiate the development server.
Copy
Run the development server
Copy
You can now access the site in your browser by visiting https://localhost:3000. Below observe the sample site displayed on the screen:
Great job! You have successfully created a new Vue.js site. Now, let's proceed to learn how to add a contact form into your project.
Copy
To incorporate a contact form into your Vue.js site, you can either add it to the existing src/App.vue file.
To successfully submit your form to Formzillion, ensure that you include the 'FORM_ID' in the provided form code. This 'FORM_ID' should correspond to the ID assigned to your specific Formzillion form.
And there you have it! Once you fill out and submit the form, you will be able to view the default submission thank you page.
Congratulations! Your Vue.js site now has the contact form powered by Formzillion!