Skip to content

User email opt-in

By default, the last step in the feedback flow asks the user for their email address. You can pre-fill this field by setting custom metadata; however, the user always has the option to remove their email from the input field for privacy reasons.

Screenshot step

If you want to skip or disable this step, you can hide the email prompt by setting email: EmailPrompt.hidden in your feedbackOptions:

dart
return Wiredash(
  // ...
  feedbackOptions: WiredashFeedbackOptions(
    email: EmailPrompt.hidden,
  ),
);

Prefilling email address

To prefill the email address, use the setUserProperties method before launching the feedback flow:

dart
Wiredash.of(context).setUserProperties(
  userEmail: 'mail@example.com',
);

INFO

For privacy reasons, the userEmail will not be attached automatically but will be used to populate the input field, so the user does not have to fill it in manually.

You can also use Wiredash.of(context).modifyMetaData() to attach custom metadata and provide the user email through that:

dart
Wiredash.of(context).modifyMetaData((metadata) => metadata
  ..userEmail = 'mail@example.com',
);

Fighting for the User since 2020 ⚔