survey.humanize() or survey.preview()), you can pass a humanize schema to control styling and optionality per question. The schema is validated against your survey before use.
Fields
Map of question name (string) → question config. Each value is a dict with the following properties.
Optional survey-level options (e.g. custom CSS).
Example
Validation
If the schema is invalid, Coop raisesHumanizeSchemaValidationError. Common causes:
- A key in
questionsis not a question name in the survey, or is an instruction. - A question’s type is not supported for humanize schema (e.g.
demand,dropdown). - A question’s entry has the wrong shape for its type (e.g. wrong field types or extra fields that aren’t allowed).
- Top-level structure is invalid (e.g.
questionsnot a dict, or an entry not a dict).
survey.preview(humanize_schema=...) to get a preview URL.
Ensure your humanize schema matches the parameters above for each question type in your survey.