Skip to content
APERVEIL / DOCS / BLOCKS

Forms — Blocks

Make an Aperveil form block live: contact, sign-in, newsletter and booking forms with your own submit handler on every platform.

05

Forms

Contact, sign-in, sign-up, newsletter, waitlist and booking blocks (and footers with a signup) come with their form. Validation is the browser's own (required fields, email addresses). Your handler receives the field values after it: return (or resolve) to show the sent message, throw (or reject) to show the error and let the visitor try again. Without a handler the form stays a preview.

  • React and Vue: pass onSubmit.
  • Plain HTML: replace the handler in the script at the end of index.html with your own.
  • WordPress: the plugin's block/view.js holds the handler; it only logs the values until you send them to your own endpoint there.

Installing shaders on their own: see the guide for React, Vue, HTML, WordPress or Framer.