Skip to content

Prevent starting a campaign if invalid custom fields are present in script #1129

Open
@kohlee

Description

@kohlee

Is your feature request related to a problem? Please describe.
Scripted custom fields that don't appear in or match exactly with the loaded CSV will show as plain text (e.g. {polling_location}) rather than populating. This can be caught by looking for custom fields that appear as red rather than green, but the campaign can still be started and texts like, "Will you donate {ask} today?" can still be sent.

Describe the solution you'd like
When the start button is used on a campaign with invalid custom fields, a warning box should prompt the user to review the script and starting the campaign should be disallowed. With the campaign unstarted, the user can either reupload a new csv or fix/omit the invalid custom field within the script.

Describe alternatives you've considered
Invalid custom fields could not populate but also not appear, resulting in texts like, "Will you donate today?" but also texts like "Will you join us at the on at ?"

Additional context
Screen Shot 2022-03-25 at 6 27 37 AM

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions