gristlabs_grist-core/static/forms
Jarosław Sadziński 372d86618f (core) Required fields in forms and bug fixes
Summary:
- Adding little green asterisk at the end of field title.
- Fixing bug on columns component. Adding paragraph as a column and then selecting it was throwing error in the RightPanel
- Fixing boolean column bug in the editor
- Adding (--Choose--) placeholder for dropdowns
- Fixing columns logic: Dragging and dropping columns can unexpectedly add more columns.
- Added favicon and default page title
- Added svg to sync file for electron.

Test Plan: Updated

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D4172
2024-01-24 18:16:48 +01:00
..
form-not-found.svg (core) Polish forms 2024-01-24 02:18:03 -08:00
form-submitted.svg (core) Polish forms 2024-01-24 02:18:03 -08:00
form.css (core) Required fields in forms and bug fixes 2024-01-24 18:16:48 +01:00
form.html (core) Required fields in forms and bug fixes 2024-01-24 18:16:48 +01:00
grist-form-submit.js (core) Form kanban tasks 2024-01-23 22:11:48 +01:00
logo.png (core) Forms improvements 2024-01-19 10:34:03 +01:00
purify.min.js (core) Forms feature 2023-12-20 13:23:12 +01:00
README.md (core) Form kanban tasks 2024-01-23 22:11:48 +01:00

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