Primary

Unsubscribe

The Unsubscribe block lets subscribers cancel their subscription on the frontend.

The block displays a form on the frontend for subscribers without a user account, including an email field and a button to complete the unsubscription.

Optionally you can use the same form for user subscribers, if the option to Show for Users is enabled.

This block supports the following options:

  • Description: Displays a label for the unsubscription form
  • Field Label: The label used for the Email field
  • Email Placeholder: The placeholder used for the Email field.
  • Unsubscribe Label: The unsubscribe button label.
  • Show for Users: Whether to show the unsubscription form for subscribers with a user account.
  • ReCAPTCHA Site Key: When used in combination with ReCAPTCHA Secret Key, requires validation through Google’s ReCAPTCHA v2, to complete the form
  • ReCAPTCHA Secret Key: When used in combination with ReCAPTCHA Site Key, requires validation through Google’s ReCAPTCHA v2, to complete the form

Note: ReCAPTCHA validation can be enabled using the dedicated fields in Unsubscribe block as described above, or using the constants GROUPS_NEWSLETTERS_RECAPTCHA_SECRET_KEY and GROUPS_NEWSLETTERS_RECAPTCHA_SITE_KEY as described in the API section for these constants.