FormItSaveForm
Last updated Aug 21st, 2020 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$311 per month—let's make that $500!
Learn moreThe FormItSaveForm hook¶
This hook will save submitted forms inside an CMP.
FormIt 3.0 introduces an update to the encryption methods used for encrypting form submissions. Prior to 3.0 mcrypt was used, which in 3.0 is replaced with openssl, due to mcrypt being deprecated as of PHP 7.2. FormIt 3.0 comes with a migration page which is accessible from the manager.
Available Properties¶
It has the following properties to be passed into the FormIt snippet call:
Name | Description | Example |
---|---|---|
formName | The name of the form. Defaults to "form-{resourceid}". | |
formEncrypt | If is set to '1' (true) the submitted form will be encrypted before saving inside the DB. | |
formFields | A comma-separated list of fields that will be saved. Defaults will save all fields including the submit button. | |
fieldNames | Change the name of the field inside the CMP. So if the field name is email2 you could change the name to "secondary email". | &fieldnames=`fieldname==Field display name,anotherone==Another field display name` |