verbb / formie

The most user-friendly forms plugin for Craft CMS.
Other
93 stars 69 forks source link

Encrypt form fields by default #1843

Open joelzerner opened 2 months ago

joelzerner commented 2 months ago

What are you trying to do?

Encrypt all form fields by default.

What's your proposed solution?

Interested in exploring if a there's the possibility of a new setting which could enable form field encryption by default so there isn't a need to manually switch it on each time and removes the possibility of forgetting.

Additional context

No response

engram-design commented 2 months ago

This will be included in the Field Defaults feature!

joelzerner commented 2 months ago

Cool, sounds good. Keen to see how this works. Will this be a global field default (ie. one option impacts all fields) or individual field default (ie. change setting for each field)?

engram-design commented 2 months ago

Haven't finalised the interface, but it'll be a section in Formie's settings where you can select the field and setup defaults for new fields of that type. The settings interface will be identical to as if you were editing the field in a form.

We'll also want to provide an option to "force" the settings you define on every instance of that field type across your forms. This would be handy for the situation where you might have 50 forms, and decide you want to enable a setting like field encryption that would otherwise take an age to update every field manually.

joelzerner commented 2 months ago

Good thinking there. Some more "out loud" thinking here: will that cater for an example where you have multiple forms, all with a number of fields, and you want to retrospectively assign all fields in all forms to encrypted? Or if not retrospectively, could there simply be a "force" setting for all fields to be encrypted - or maybe that's like a batch edit of all the field settings? Not sure where the use-case fits for these vs complexity of development however I feel like users would most likely want either turn on encryption for everything or not, can't see too much reason for picking and choosing which fields are encrypted?

engram-design commented 2 months ago

The encryption settings might be their own thing entirely for this use-case, as you describe - not yet fully planned out!