How to add a form via GetForm.io #223
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
LayoutCreate a layout called {{ define "main" }}
<form action="{{ .Site.Params.contact.endpoint }}" method="POST" enctype="multipart/form-data">
<input type="text" name="name">
<input type="email" name="email">
<input type="file" name="file">
<button type="submit">Send</button>
</form>
{{ end }} PageCreate a page called +++
title = "Contact Us"
layout = "contact"
+++
Parameters[contact]
endpoint = "REPLACE_WITH_YOUR_GETFORM_ENDPOINT" Now, you can access your contact page via /contact. The page may look ugly, since I haven't used this awesome theme for a long time, so I can't help you with the CSS.
|
Beta Was this translation helpful? Give feedback.
Layout
Create a layout called
layouts/_default/contact.html
with the following content:Page
Create a page called
content/contact.md
with the following content.Parameters
Now, you can access your contact page via /contact.
The page may look ugly, s…