Written by: Geoffrey Callaghan
create contact form with gitbook
Create Contact Form With Gitbook
To create a contact form with GitBook using FabForm, you need to follow a few steps. Here’s a step-by-step guide:
Set Up Your GitBook Project:
Prepare Your Markdown File:
Integrate FabForm:
Embed FabForm in GitBook:
Here’s an example of how to do it:
Create and Configure a Form in FabForm:
Embed the Form in GitBook:
Here is an example of what the Markdown file might look like:
# Contact Us
We would love to hear from you! Please fill out the form below to get in touch.
<!-- FabForm Embed Code Start -->
<form action="https://fabform.io/f/your-form-id" method="post">
<label for="name">Name:</label><br>
<input type="text" id="name" name="name" required><br><br>
<label for="email">Email:</label><br>
<input type="email" id="email" name="email" required><br><br>
<label for="message">Message:</label><br>
<textarea id="message" name="message" rows="4" required></textarea><br><br>
<input type="submit" value="Submit">
</form>
<!-- FabForm Embed Code End -->
action
attribute in the <form>
tag should point to the URL provided by FabForm for your specific form.name
attributes of the <input>
and <textarea>
tags should match the field names configured in FabForm.required
attribute ensures that users cannot submit the form without filling out these fields.By following these steps, you can integrate a FabForm contact form into your GitBook documentation. This allows visitors to submit inquiries directly through your documentation site, and you can handle the submissions using FabForm’s backend services.