mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
6cb8614017
Summary: - Updates styling of form submitted page. - Tweaks styling of checkboxes, labels, and questions on form page. - Adds new form 404 page. - Adds checkbox to not show warning again when publishing or un-publishing a form. - Excludes formula, hidden, and attachment columns in submitted form data. - Adds placeholder text to form configuration inputs. - Improves dark mode styling in Form widget. - Updates default title and description of new forms. - Updates styling of Form widget buttons. - Fixes form success text input handling. Test Plan: Browser tests. Reviewers: jarek Reviewed By: jarek Differential Revision: https://phab.getgrist.com/D4170 |
||
---|---|---|
.. | ||
form-not-found.svg | ||
form-submitted.svg | ||
form.css | ||
form.html | ||
grist-form-submit.js | ||
logo.png | ||
purify.min.js | ||
README.md |
grist-form-submit.js
File is taken from https://github.com/gristlabs/grist-form-submit. But it is modified to work with forms, especially for:
- Ref and RefList columns, as by default it sends numbers as strings (FormData issue), and Grist doesn't know how to convert them back to numbers.
- Empty strings are not sent at all - otherwise Grist won't be able to fire trigger formulas correctly and provide default values for columns.
- By default it requires a redirect URL, now it is optional.
purify.min.js
File taken from https://www.npmjs.com/package/dompurify. It is used to sanitize HTML. It wasn't modified at all.
form.html
This is handlebars template filled by DocApi.ts