How Do I Add A Form To My Website?
Add data-oxy-form="contact" to a normal HTML form tag and OxyPages handles the rest - it wires up the submission endpoint, stores every entry on your Forms page and can email you when one arrives. Captcha keys must be set in Form Settings before submissions are accepted.
Updated
Write a normal HTML form and add one attribute to the form tag:
<form data-oxy-form="contact">
<input name="email" type="email" required>
<textarea name="message"></textarea>
<button type="submit">Send</button>
</form>
That is the whole setup on the page. OxyPages detects the attribute when the page is served, points the form at its submission endpoint, and adds the captcha and anti-spam pieces automatically - you do not add any script.
The value of data-oxy-form is the form's name ("contact" above). Use a
short name made of letters, numbers, hyphens or underscores; entries are
grouped under it on your Forms page.
Before It Works: Captcha Keys
Submissions are rejected until a captcha provider is configured in Form Settings. This is mandatory on every plan - see the captcha setup article.
Two Rules For Your Fields
- Every input, select and textarea needs a
nameattribute. A field without a name is not captured. - File uploads are not supported. A file input's contents are discarded; only the filename is recorded.
Where Submissions Go
Every submission is stored on the website's Forms page in your dashboard, newest first, grouped by form name. The newest 5,000 entries per website are kept. You can also get an email per submission - see the notifications article.
Forms Work On The Published Site Only
Forms submit only on your live, published website. They do not work in the editor preview. Publish first, then test on the real address - and note that repeated test submissions from the same connection are rate limited.