Allow automatic white-space trimming of form submission data

Description

There should be an option to trim leading/trailing whitespace from submitted form data.

event.getCollectionForForm() should have an autoTrim argument with a default.

Default setting in Config.cfc is false (do not trim whitespace - existing behaviour) for both admin and frontend form submissions.

Option to set autoTrim option on object property or form field.
If true, will be trimmed even if global/request setting is not to trim.
If false, will not be trimmed even if global/request setting is to trim.

Assignee

Seb Duggan

Reporter

Seb Duggan

Labels

None

Accepted

Yes

Fix versions

Priority

Medium
Configure