Forms ===== Creating and submitting forms ----------------------------- There is a form handler. If you construct a form, with the action of "/site_api/submit_form" then your form will be processed by the internal form submission engine. This saves the contents of the form, and it can email the contents of the form to one or more of your site's users. You can also view saved forms in the dashboard at https://website.glass Form Validation --------------- All form validation should happen on the frontend, or alternately in a webhook. The form handler just saves the data that comes in. Redirect and Success Message ---------------------------- You can set a redirect with ```` field. This is where the form submitter will be redirected after the form is completed. Emailing Responses to yourself ------------------------------ Email sending is limited to designers/admins/editors of your site (that's you!). To email a form create a input or select field on your form with the attribute ``name=to`` and the value of the *user id or email" to email to. You can also email to multiple users, by separating values by commas.: .. code-block:: html You can also use a select or multi-select .. code-block:: html

Who is your favorite?

Setting the Reply-To value of the email ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To reply to the person who sent you an email, set the ``name=email`` on a form. Example form ------------ Here's a full example form: .. code-block:: html