Sites made with static site generators are on the ascent. They’re quick and secure, as there’s no information on the server side. The web server constructs and serves site pages on the fly. You don’t need to stress over data sets and server-side security.
You can compose your posts in Markdown or HTML that gets delivered pleasantly with the assistance of templating engines. All is well until you need to add dynamic usefulness to your static site, for example, a contact form. In any case, you don’t need to stress, as you can utilize an outside backend like Google Forms to execute such highlights.
Use Google forms to insert a contact form
Approaching information gathered by forms should be handled by a server and put away in a data set. You can find numerous internet-based instructional exercises that suggest Formspree as a free form backend for static sites. Nonetheless, the free adaptation of Formspree in some cases finds issues like not sending form entries to your email address.
Be that as it may, Google forms isn’t restricted to contact forms; you can make any sort of custom forms or reviews with it. Your clients won’t realize that you’re utilizing Google forms, as the form you make can be coordinated with your site’s plan!
- Make a new form on Google’s platform
Sign in to the Google forms stage with your Google account. You can either begin another form without any preparation or utilize Google’s pre-made layouts. As Google has a genuinely decent Contact form layout, you’ll utilize that instead of beginning with a clear format.
Click the format called “Contact Information” in the Layout gallery at top of the page.
- Make a comparable form on your website
Presently, you want to reflect the Google form you made in the past step so it can advance information from your site to the Google backend. Make a fundamental HTML form with similar form fields: Name, Email, Subject, and Message.
The HTML doesn’t need to be the same as Google’s, however, it necessities to have the same form fields. You can add your CSS classes to the form so that it’ll match your site’s plan.
It’ll be the intex pools name and activity handles that will attach your on-location form to the Google backend.
- Add name and activity values to your on-location form
Google utilizes custom names and activity values to recognize each form. The activity quality has a place with the <form> tag, while the name credits have a place with the info fields. Thus, you want to track down these custom qualities and add them to the HTML.
Log out of Google, as though you stay signed in it’ll be difficult to do the code examination. Load your Google form utilizing the form’s URL and investigate it utilizing your program’s engineering instruments.
- Divert to a custom thank you page
While doing the test, you’ve most likely seen that your site has diverted the client to the research’s default thank you page. On the off chance that you’d prefer to send your respondents to your custom thank you page add the accompanying code to the highest point of your form.
- Design your form settings
You can additionally change your form settings to deal more readily with your approaching reactions. For instance, you can receive email notices for each new accommodation.
Static sites are great for any individual who needs a simple web presence yet doesn’t have any desire to utilize a CMS like WordPress or pay for facilitating. With an outer backend, you can likewise add dynamic highlights to your static site.
Google Forms furnish you with a free solution for installing a custom contact form to your site. To make a stride further in form building, read more here on the most proficient method to construct better contact forms, as well.