Settings

All forms are build via TypoScript as predefined forms.

TypoScript Path

plugin.tx_formhandler_form.settings

Example Code:

plugin.tx_formhandler_form.settings {
  admin {
    bccEmail =
    bccName =
    ccEmail =
    ccName =
    replyToEmail =
    replyToName =
    senderEmail =
    senderName =
    subject =
    toEmail =
  }
  predefinedForm {
    formId1 {
    }
    formId2 {
    }
    formId3 {
    }
  }
  redirectPage = 12
  requiredFields = 1.customer.firstname, 1.customer.lastname
  responseType = html
  user {
    bccEmail =
    bccName =
    ccEmail =
    ccName =
    replyToEmail =
    replyToName =
    senderEmail =
    senderName =
    subject =
    toEmail =
  }
}

Properties

admin

See MailFinisher

Mandatory

False

Data Type

MailModel

predefinedForm

See Predefined Form

Mandatory

True

Data Type

Array<String, FormModel>

Note

The key String of Array<String, FormModel> must be unique.

redirectPage

Page UID to redirect to after successful form submission.

Mandatory

True (only if RedirectFinisher is set)

Data Type

Integer

requiredFields

Mandatory fields (enter names of form fields separated by “,”)

Mandatory

False

Data Type

String

responseType

Determents the form rendering either as HTML or JSON for headless response.

Mandatory

True

Data Type

String

Supported values

html, json

user

See MailFinisher

Mandatory

False

Data Type

MailModel