fb_email_to

Purpose

Define an email address where forms will be sent to.

Specifications
captionEmail address recipient
namefb_email_to
descriptionSubmitted forms will be sent to this address. If this field is empty, the form will be sent to the default email address of the website (which can be found under Extras > Configuration).
categorySettings - Email
sortOrder1
typeemail
References
Assigned to the following templates
Included in the following patterns

fb_email_cc

Purpose

Define a CC address where forms will also be sent to.

Specifications
captionEmail CC address
namefb_email_cc
descriptionOptional.
categorySettings - Email
sortOrder2
typeemail
References
Assigned to the following templates
Included in the following patterns

fb_email_bcc

Purpose

Define a BCC address where forms will also be sent to.

Tip: this can be convenient for linking your form to an automated service like Zapier.

Specifications
captionEmail BCC address
namefb_email_bcc
descriptionOptional.
categorySettings - Email
sortOrder3
typeemail
References
Assigned to the following templates
Included in the following patterns

fb_email_from

Purpose

It will appear as if the form was sent from this email address.

Specifications
captionEmail FROM address
namefb_email_from
descriptionOptional. Defaults to emailsender system setting.
categorySettings - Email
sortOrder5
typeemail
References
Assigned to the following templates
Included in the following patterns

fb_email_from_name

Purpose

It will appear as if the form was sent by this person or organization.

Specifications
captionEmail FROM name
namefb_email_from_name
descriptionOptional. Defaults to site_name system setting.
categorySettings - Email
sortOrder6
typetext
References
Assigned to the following templates
Included in the following patterns

fb_email_subject

Purpose

Provides the subject line for an email message.

Specifications
captionEmail subject
namefb_email_subject
categorySettings - Email
sortOrder10
typetext
References
Assigned to the following templates
Included in the following patterns

fb_redirect_id

Purpose

Allows you to link to a specific redirect page.

Specifications
captionRedirect page
namefb_redirect_id
descriptionEnter the ID of the page, or drag the page from the menu tree to this input field.
categorySettings - General
sortOrder90
typenumber
References
Assigned to the following templates
Included in the following patterns

fb_submit_button

Purpose

Allows you to change the default text inside the submit button of each form.

Specifications
captionText in submit button
namefb_submit_button
descriptionDefaults to Send.
categorySettings - General
sortOrder92
typetext
References
Assigned to the following templates
Included in the following patterns

fb_form_layout

Purpose

Allows you to change the appearance of a form by selecting the position of the labels.

Specifications
captionLayout type
namefb_form_layout
descriptionStacked means the labels are always above the input fields, Horizontal means the labels are next to the fields, Inline means everything is on 1 row (so only for very small forms).
categorySettings - General
sortOrder5
typelistbox
inputOptionValuesStacked==vertical||Horizontal==horizontal||Inline==inline
defaultValuehorizontal
References

fb_email_to_dynamic

Purpose

With this TV you can override the default fb_email_to field by a dynamically generated email address. This can be done by placing a custom snippet call inside the textarea of this TV. You can use any snippet you like, as long as it returns a valid email address (or comma separated list of addresses).

Guidelines

As an example, consider the following scenario:

You're building a website for an organization with several departments. Each department wants to have its own page on the site, with the option to contact that department directly through a web form. The form can be the same for all departments, but they want to have it sent to a different person in each case.

At this point you might think: let's just create a TV and attach it to template that all departments pages use. Then simply retrieve the value of this TV inside the fb_email_to field, instead of entering a real email address there. Unfortunately this won't work, because:

  • The fb_email_to field is expecting an email address, meaning a string containing an @
  • The form is coming from a different resource, meaning its content is already rendered when being loaded on the page

This is where the fb_email_to_dynamic field comes in. We can fetch the TV containing the email address of the department by sending out a snippet to go look for it. As you can see under Specifications, we can use the current_id placeholder to look inside the resource containing the form. The snippet call could be something like this (using the fastField shorthand syntax of pdoParser):

[[#[[+current_id]].tv.department_email]]
Example

Now the same form can be used on multiple different pages, with a unique email_to address for every page.

Specifications
captionDynamic recipient address
namefb_email_to_dynamic
descriptionYou can place any snippet / FastField call here that outputs a single email address. Retrieve something inside a resource by using the [[+current_id]] placeholder. WARNING: populating this field will override the default recipient address, so test thoroughly!
categorySettings - Advanced
sortOrder1
typetextarea
References
Assigned to the following templates
Included in the following patterns

fb_email_template

Purpose

Enables you to use your own email template.

Specifications
captionEmail template
namefb_email_template
descriptionOptional. Name of the chunk containing your own customized (HTML) email template. Make sure there is a [[+content]] placeholder in there for listing the fields.
categorySettings - Advanced
sortOrder20
typetext
References
Assigned to the following templates
Included in the following patterns

fb_email_template_rows

Purpose

Define rows for your custom email template.

Specifications
captionEmail template rows
namefb_email_template_rows
descriptionOptional. Name of the chunk containing the customized HTML for the template rows. This will be used to display each individual field in your email. Use [[+label]] and [[+value]] placeholders to show the content.
categorySettings - Advanced
sortOrder21
typetext
References
Assigned to the following templates
Included in the following patterns