Skip to content

validator: don't require a submit button when stage includes a survey #1223

Description

@JamesPHoughton

When an intro step/exit step includes a survey, the survey submission submits the step. Currently, however, zod is enforcing the submit button requirement (which is useful in other contexts) in ways that raise misleading errors:

Error in item "0": Invalid template content for content type 'treatment': Intro/exit step must include at least one submitButton element.

Image

If an intro or exit step contains a survey, we should allow there not to be a submit button.

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