Sterc / FormIt

A dynamic form processing Snippet for MODX Revolution
https://docs.modx.com/current/en/extras/formit
33 stars 58 forks source link

Feature Added - Restrict email fields (Issue #36) #84

Closed matdave closed 7 years ago

matdave commented 8 years ago

I've updated the processor to restrict emailed fields and optionally label them using the already placed variables formFields and fieldNames when no template is selected

joeke commented 8 years ago

Hi @matdave I do see a problem here on existing FormIt forms, where no &tpl is specified and &formFields is used, that only the fields in formFields will be used in the email. In the old situation all the fields would be used, and with your fix only the fields from &formFields are used. So maybe a better option would be to merge all the submitted fields and the &formFields.. in that case still all the fields are used, but only the ones provided in &formFields will have the specified name, all others will use the key. Another option would be to add an extra property to enable/disable using &formFields for the email when no tpl is provided.