Jump to main content Jump to doc navigation

FormItSaveForm

Other versions: 3.x — Found a problem? Please edit this page or report an issue.

The 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
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".
Ex: &fieldnames=fieldname==newfieldname, anotherone==anothernewname.

See Also

  1. FormIt.Hooks.email
  2. FormIt.Hooks.FormItAutoResponder
  3. FormIt.Hooks.FormItSaveForm
  4. FormIt.Hooks.math
  5. FormIt.Hooks.recaptcha
  6. FormIt.Hooks.redirect
  7. FormIt.Hooks.spam
  8. FormIt.PreHooks.FormItLoadSavedForm