changedInput schema / properties / fields / items / oneOf
Previous value: -[
- {
- "properties": {
- "key": {
- "description": "The field's key in its form",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- },
- "label": {
- "maxLength": 255,
- "minLength": 1,
- "type": "string"
- },
- "placeholder": {
- "anyOf": [
- {
- "maxLength": 255,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "required": {
- "type": "boolean"
- },
- "showIf": {
- "description": "Ask only after a matching answer; otherwise skipped and not required",
- "properties": {
- "anyOf": {
- "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
- "items": {
- "maxLength": 255,
- "type": "string"
- },
- "maxItems": 100,
- "minItems": 1,
- "type": "array"
- },
- "fieldKey": {
- "description": "The earlier question this depends on",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "fieldKey",
- "anyOf"
- ],
- "type": "object"
- },
- "type": {
- "const": "text",
- "type": "string"
- }
- },
- "required": [
- "type",
- "key",
- "label",
- "required",
- "placeholder"
- ],
- "type": "object"
- },
- {
- "properties": {
- "key": {
- "description": "The field's key in its form",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- },
- "label": {
- "maxLength": 255,
- "minLength": 1,
- "type": "string"
- },
- "placeholder": {
- "anyOf": [
- {
- "maxLength": 255,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "required": {
- "type": "boolean"
- },
- "showIf": {
- "description": "Ask only after a matching answer; otherwise skipped and not required",
- "properties": {
- "anyOf": {
- "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
- "items": {
- "maxLength": 255,
- "type": "string"
- },
- "maxItems": 100,
- "minItems": 1,
- "type": "array"
- },
- "fieldKey": {
- "description": "The earlier question this depends on",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "fieldKey",
- "anyOf"
- ],
- "type": "object"
- },
- "type": {
- "const": "textarea",
- "type": "string"
- }
- },
- "required": [
- "type",
- "key",
- "label",
- "required",
- "placeholder"
- ],
- "type": "object"
- },
- {
- "properties": {
- "key": {
- "description": "The field's key in its form",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- },
- "label": {
- "maxLength": 255,
- "minLength": 1,
- "type": "string"
- },
- "placeholder": {
- "anyOf": [
- {
- "maxLength": 255,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "required": {
- "type": "boolean"
- },
- "showIf": {
- "description": "Ask only after a matching answer; otherwise skipped and not required",
- "properties": {
- "anyOf": {
- "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
- "items": {
- "maxLength": 255,
- "type": "string"
- },
- "maxItems": 100,
- "minItems": 1,
- "type": "array"
- },
- "fieldKey": {
- "description": "The earlier question this depends on",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "fieldKey",
- "anyOf"
- ],
- "type": "object"
- },
- "type": {
- "const": "email",
- "type": "string"
- }
- },
- "required": [
- "type",
- "key",
- "label",
- "required",
- "placeholder"
- ],
- "type": "object"
- },
- {
- "properties": {
- "key": {
- "description": "The field's key in its form",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- },
- "label": {
- "maxLength": 255,
- "minLength": 1,
- "type": "string"
- },
- "placeholder": {
- "anyOf": [
- {
- "maxLength": 255,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "required": {
- "type": "boolean"
- },
- "showIf": {
- "description": "Ask only after a matching answer; otherwise skipped and not required",
- "properties": {
- "anyOf": {
- "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
- "items": {
- "maxLength": 255,
- "type": "string"
- },
- "maxItems": 100,
- "minItems": 1,
- "type": "array"
- },
- "fieldKey": {
- "description": "The earlier question this depends on",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "fieldKey",
- "anyOf"
- ],
- "type": "object"
- },
- "type": {
- "const": "phone",
- "type": "string"
- }
- },
- "required": [
- "type",
- "key",
- "label",
- "required",
- "placeholder"
- ],
- "type": "object"
- },
- {
- "properties": {
- "key": {
- "description": "The field's key in its form",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- },
- "label": {
- "maxLength": 255,
- "minLength": 1,
- "type": "string"
- },
- "max": {
- "description": "Largest accepted answer",
- "type": [
- "number",
- "null"
- ]
- },
- "min": {
- "description": "Smallest accepted answer",
- "type": [
- "number",
- "null"
- ]
- },
- "placeholder": {
- "anyOf": [
- {
- "maxLength": 255,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "required": {
- "type": "boolean"
- },
- "showIf": {
- "description": "Ask only after a matching answer; otherwise skipped and not required",
- "properties": {
- "anyOf": {
- "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
- "items": {
- "maxLength": 255,
- "type": "string"
- },
- "maxItems": 100,
- "minItems": 1,
- "type": "array"
- },
- "fieldKey": {
- "description": "The earlier question this depends on",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "fieldKey",
- "anyOf"
- ],
- "type": "object"
- },
- "type": {
- "const": "number",
- "type": "string"
- }
- },
- "required": [
- "type",
- "key",
- "label",
- "required",
- "placeholder",
- "min",
- "max"
- ],
- "type": "object"
- },
- {
- "properties": {
- "key": {
- "description": "The field's key in its form",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- },
- "label": {
- "maxLength": 255,
- "minLength": 1,
- "type": "string"
- },
- "required": {
- "type": "boolean"
- },
- "showIf": {
- "description": "Ask only after a matching answer; otherwise skipped and not required",
- "properties": {
- "anyOf": {
- "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
- "items": {
- "maxLength": 255,
- "type": "string"
- },
- "maxItems": 100,
- "minItems": 1,
- "type": "array"
- },
- "fieldKey": {
- "description": "The earlier question this depends on",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "fieldKey",
- "anyOf"
- ],
- "type": "object"
- },
- "type": {
- "const": "date",
- "type": "string"
- }
- },
- "required": [
- "type",
- "key",
- "label",
- "required"
- ],
- "type": "object"
- },
- {
- "properties": {
- "key": {
- "description": "The field's key in its form",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- },
- "label": {
- "maxLength": 255,
- "minLength": 1,
- "type": "string"
- },
- "required": {
- "type": "boolean"
- },
- "scale": {
- "anyOf": [
- {
- "const": 5,
- "type": "number"
- },
- {
- "const": 10,
- "type": "number"
- }
- ],
- "description": "The answer is a whole number from 1 to this"
- },
- "showIf": {
- "description": "Ask only after a matching answer; otherwise skipped and not required",
- "properties": {
- "anyOf": {
- "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
- "items": {
- "maxLength": 255,
- "type": "string"
- },
- "maxItems": 100,
- "minItems": 1,
- "type": "array"
- },
- "fieldKey": {
- "description": "The earlier question this depends on",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "fieldKey",
- "anyOf"
- ],
- "type": "object"
- },
- "type": {
- "const": "rating",
- "type": "string"
- }
- },
- "required": [
- "type",
- "key",
- "label",
- "required",
- "scale"
- ],
- "type": "object"
- },
- {
- "properties": {
- "key": {
- "description": "The field's key in its form",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- },
- "label": {
- "maxLength": 255,
- "minLength": 1,
- "type": "string"
- },
- "multiple": {
- "description": "Lets the visitor pick several; the answer is then a list",
- "type": "boolean"
- },
- "optionImageUrls": {
- "additionalProperties": {
- "format": "uri",
- "type": "string"
- },
- "description": "A picture to show on each choice, keyed by option text",
- "propertyNames": {
- "maxLength": 255,
- "minLength": 1,
- "type": "string"
- },
- "type": "object"
- },
- "optionOutcomes": {
- "additionalProperties": {
- "description": "Stable identifier of the result, such as dry-skin",
- "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$",
- "type": "string"
- },
- "description": "The result each choice counts toward in an outcomes quiz, keyed by option text",
- "propertyNames": {
- "maxLength": 255,
- "minLength": 1,
- "type": "string"
- },
- "type": "object"
- },
- "optionPoints": {
- "additionalProperties": {
- "maximum": 1000,
- "minimum": -1000,
- "type": "integer"
- },
- "description": "Points each choice adds to the score of a points quiz, keyed by option text; may be negative",
- "propertyNames": {
- "maxLength": 255,
- "minLength": 1,
- "type": "string"
- },
- "type": "object"
- },
- "options": {
- "items": {
- "maxLength": 255,
- "minLength": 1,
- "type": "string"
- },
- "maxItems": 100,
- "minItems": 1,
- "type": "array"
- },
- "required": {
- "type": "boolean"
- },
- "showIf": {
- "description": "Ask only after a matching answer; otherwise skipped and not required",
- "properties": {
- "anyOf": {
- "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
- "items": {
- "maxLength": 255,
- "type": "string"
- },
- "maxItems": 100,
- "minItems": 1,
- "type": "array"
- },
- "fieldKey": {
- "description": "The earlier question this depends on",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "fieldKey",
- "anyOf"
- ],
- "type": "object"
- },
- "type": {
- "const": "select",
- "type": "string"
- }
- },
- "required": [
- "type",
- "key",
- "label",
- "required",
- "options"
- ],
- "type": "object"
- },
- {
- "properties": {
- "key": {
- "description": "The field's key in its form",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- },
- "label": {
- "maxLength": 255,
- "minLength": 1,
- "type": "string"
- },
- "required": {
- "type": "boolean"
- },
- "showIf": {
- "description": "Ask only after a matching answer; otherwise skipped and not required",
- "properties": {
- "anyOf": {
- "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
- "items": {
- "maxLength": 255,
- "type": "string"
- },
- "maxItems": 100,
- "minItems": 1,
- "type": "array"
- },
- "fieldKey": {
- "description": "The earlier question this depends on",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "fieldKey",
- "anyOf"
- ],
- "type": "object"
- },
- "type": {
- "const": "checkbox",
- "type": "string"
- }
- },
- "required": [
- "type",
- "key",
- "label",
- "required"
- ],
- "type": "object"
- },
- {
- "properties": {
- "key": {
- "description": "The field's key in its form",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- },
- "label": {
- "maxLength": 255,
- "minLength": 1,
- "type": "string"
- },
- "required": {
- "type": "boolean"
- },
- "showIf": {
- "description": "Ask only after a matching answer; otherwise skipped and not required",
- "properties": {
- "anyOf": {
- "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
- "items": {
- "maxLength": 255,
- "type": "string"
- },
- "maxItems": 100,
- "minItems": 1,
- "type": "array"
- },
- "fieldKey": {
- "description": "The earlier question this depends on",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "fieldKey",
- "anyOf"
- ],
- "type": "object"
- },
- "type": {
- "const": "consent",
- "type": "string"
- }
- },
- "required": [
- "type",
- "key",
- "label",
- "required"
- ],
- "type": "object"
- },
- {
- "properties": {
- "key": {
- "description": "The field's key in its form",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- },
- "label": {
- "maxLength": 255,
- "minLength": 1,
- "type": "string"
- },
- "required": {
- "type": "boolean"
- },
- "showIf": {
- "description": "Ask only after a matching answer; otherwise skipped and not required",
- "properties": {
- "anyOf": {
- "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
- "items": {
- "maxLength": 255,
- "type": "string"
- },
- "maxItems": 100,
- "minItems": 1,
- "type": "array"
- },
- "fieldKey": {
- "description": "The earlier question this depends on",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "fieldKey",
- "anyOf"
- ],
- "type": "object"
- },
- "type": {
- "const": "file",
- "type": "string"
- }
- },
- "required": [
- "type",
- "key",
- "label",
- "required"
- ],
- "type": "object"
- },
- {
- "description": "Never shown; filled from a link parameter with the field's key, or from code",
- "properties": {
- "key": {
- "description": "The field's key in its form",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- },
- "label": {
- "maxLength": 255,
- "minLength": 1,
- "type": "string"
- },
- "required": {
- "type": "boolean"
- },
- "showIf": {
- "description": "Ask only after a matching answer; otherwise skipped and not required",
- "properties": {
- "anyOf": {
- "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
- "items": {
- "maxLength": 255,
- "type": "string"
- },
- "maxItems": 100,
- "minItems": 1,
- "type": "array"
- },
- "fieldKey": {
- "description": "The earlier question this depends on",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "fieldKey",
- "anyOf"
- ],
- "type": "object"
- },
- "type": {
- "const": "hidden",
- "type": "string"
- }
- },
- "required": [
- "type",
- "key",
- "label",
- "required"
- ],
- "type": "object"
- },
- {
- "description": "Starts a new step; every question up to the next section is one step. Never answered",
- "properties": {
- "key": {
- "description": "The field's key in its form",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- },
- "label": {
- "description": "The step's title",
- "maxLength": 255,
- "minLength": 1,
- "type": "string"
- },
- "required": {
- "const": false,
- "type": "boolean"
- },
- "type": {
- "const": "section",
- "type": "string"
- }
- },
- "required": [
- "type",
- "key",
- "label",
- "required"
- ],
- "type": "object"
- },
- {
- "properties": {
- "bookableKey": {
- "maxLength": 120,
- "minLength": 1,
- "type": "string"
- },
- "key": {
- "description": "The field's key in its form",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- },
- "label": {
- "maxLength": 255,
- "minLength": 1,
- "type": "string"
- },
- "required": {
- "type": "boolean"
- },
- "routing": {
- "description": "Book a different event type depending on an earlier answer",
- "properties": {
- "bookableKeys": {
- "additionalProperties": {
- "maxLength": 120,
- "minLength": 1,
- "type": "string"
- },
- "description": "The event type to book for each choice; a choice not listed books the field's own bookableKey",
- "propertyNames": {
- "maxLength": 255,
- "minLength": 1,
- "type": "string"
- },
- "type": "object"
- },
- "fieldKey": {
- "description": "An earlier one-answer multiple-choice question",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "fieldKey",
- "bookableKeys"
- ],
- "type": "object"
- },
- "showIf": {
- "description": "Ask only after a matching answer; otherwise skipped and not required",
- "properties": {
- "anyOf": {
- "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
- "items": {
- "maxLength": 255,
- "type": "string"
- },
- "maxItems": 100,
- "minItems": 1,
- "type": "array"
- },
- "fieldKey": {
- "description": "The earlier question this depends on",
- "pattern": "^[a-z][a-z0-9_-]{0,63}$",
- "type": "string"
- }
- },
- "required": [
- "fieldKey",
- "anyOf"
- ],
- "type": "object"
- },
- "type": {
- "const": "slot",
- "type": "string"
- }
- },
- "required": [
- "type",
- "key",
- "label",
- "required",
- "bookableKey"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "properties": {
+ "key": {
+ "description": "The field's key in its form",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "label": {
+ "maxLength": 255,
+ "minLength": 1,
+ "type": "string"
+ },
+ "placeholder": {
+ "anyOf": [
+ {
+ "maxLength": 255,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "required": {
+ "type": "boolean"
+ },
+ "showIf": {
+ "description": "Ask only after a matching answer; otherwise skipped and not required",
+ "properties": {
+ "anyOf": {
+ "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
+ "items": {
+ "maxLength": 255,
+ "type": "string"
+ },
+ "maxItems": 100,
+ "minItems": 1,
+ "type": "array"
+ },
+ "fieldKey": {
+ "description": "The earlier question this depends on",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "fieldKey",
+ "anyOf"
+ ],
+ "type": "object"
+ },
+ "type": {
+ "const": "text",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "key",
+ "label",
+ "required",
+ "placeholder"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "description": "The field's key in its form",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "label": {
+ "maxLength": 255,
+ "minLength": 1,
+ "type": "string"
+ },
+ "placeholder": {
+ "anyOf": [
+ {
+ "maxLength": 255,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "required": {
+ "type": "boolean"
+ },
+ "showIf": {
+ "description": "Ask only after a matching answer; otherwise skipped and not required",
+ "properties": {
+ "anyOf": {
+ "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
+ "items": {
+ "maxLength": 255,
+ "type": "string"
+ },
+ "maxItems": 100,
+ "minItems": 1,
+ "type": "array"
+ },
+ "fieldKey": {
+ "description": "The earlier question this depends on",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "fieldKey",
+ "anyOf"
+ ],
+ "type": "object"
+ },
+ "type": {
+ "const": "textarea",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "key",
+ "label",
+ "required",
+ "placeholder"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "description": "The field's key in its form",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "label": {
+ "maxLength": 255,
+ "minLength": 1,
+ "type": "string"
+ },
+ "placeholder": {
+ "anyOf": [
+ {
+ "maxLength": 255,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "required": {
+ "type": "boolean"
+ },
+ "showIf": {
+ "description": "Ask only after a matching answer; otherwise skipped and not required",
+ "properties": {
+ "anyOf": {
+ "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
+ "items": {
+ "maxLength": 255,
+ "type": "string"
+ },
+ "maxItems": 100,
+ "minItems": 1,
+ "type": "array"
+ },
+ "fieldKey": {
+ "description": "The earlier question this depends on",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "fieldKey",
+ "anyOf"
+ ],
+ "type": "object"
+ },
+ "type": {
+ "const": "email",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "key",
+ "label",
+ "required",
+ "placeholder"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "description": "The field's key in its form",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "label": {
+ "maxLength": 255,
+ "minLength": 1,
+ "type": "string"
+ },
+ "placeholder": {
+ "anyOf": [
+ {
+ "maxLength": 255,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "required": {
+ "type": "boolean"
+ },
+ "showIf": {
+ "description": "Ask only after a matching answer; otherwise skipped and not required",
+ "properties": {
+ "anyOf": {
+ "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
+ "items": {
+ "maxLength": 255,
+ "type": "string"
+ },
+ "maxItems": 100,
+ "minItems": 1,
+ "type": "array"
+ },
+ "fieldKey": {
+ "description": "The earlier question this depends on",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "fieldKey",
+ "anyOf"
+ ],
+ "type": "object"
+ },
+ "type": {
+ "const": "phone",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "key",
+ "label",
+ "required",
+ "placeholder"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "description": "The field's key in its form",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "label": {
+ "maxLength": 255,
+ "minLength": 1,
+ "type": "string"
+ },
+ "max": {
+ "description": "Largest accepted answer",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "min": {
+ "description": "Smallest accepted answer",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "placeholder": {
+ "anyOf": [
+ {
+ "maxLength": 255,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "required": {
+ "type": "boolean"
+ },
+ "showIf": {
+ "description": "Ask only after a matching answer; otherwise skipped and not required",
+ "properties": {
+ "anyOf": {
+ "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
+ "items": {
+ "maxLength": 255,
+ "type": "string"
+ },
+ "maxItems": 100,
+ "minItems": 1,
+ "type": "array"
+ },
+ "fieldKey": {
+ "description": "The earlier question this depends on",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "fieldKey",
+ "anyOf"
+ ],
+ "type": "object"
+ },
+ "type": {
+ "const": "number",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "key",
+ "label",
+ "required",
+ "placeholder",
+ "min",
+ "max"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "description": "The field's key in its form",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "label": {
+ "maxLength": 255,
+ "minLength": 1,
+ "type": "string"
+ },
+ "required": {
+ "type": "boolean"
+ },
+ "showIf": {
+ "description": "Ask only after a matching answer; otherwise skipped and not required",
+ "properties": {
+ "anyOf": {
+ "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
+ "items": {
+ "maxLength": 255,
+ "type": "string"
+ },
+ "maxItems": 100,
+ "minItems": 1,
+ "type": "array"
+ },
+ "fieldKey": {
+ "description": "The earlier question this depends on",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "fieldKey",
+ "anyOf"
+ ],
+ "type": "object"
+ },
+ "type": {
+ "const": "date",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "key",
+ "label",
+ "required"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "description": "The field's key in its form",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "label": {
+ "maxLength": 255,
+ "minLength": 1,
+ "type": "string"
+ },
+ "required": {
+ "type": "boolean"
+ },
+ "scale": {
+ "anyOf": [
+ {
+ "const": 5,
+ "type": "number"
+ },
+ {
+ "const": 10,
+ "type": "number"
+ }
+ ],
+ "description": "The answer is a whole number from 1 to this"
+ },
+ "showIf": {
+ "description": "Ask only after a matching answer; otherwise skipped and not required",
+ "properties": {
+ "anyOf": {
+ "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
+ "items": {
+ "maxLength": 255,
+ "type": "string"
+ },
+ "maxItems": 100,
+ "minItems": 1,
+ "type": "array"
+ },
+ "fieldKey": {
+ "description": "The earlier question this depends on",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "fieldKey",
+ "anyOf"
+ ],
+ "type": "object"
+ },
+ "type": {
+ "const": "rating",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "key",
+ "label",
+ "required",
+ "scale"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "description": "The field's key in its form",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "label": {
+ "maxLength": 255,
+ "minLength": 1,
+ "type": "string"
+ },
+ "multiple": {
+ "description": "Lets the visitor pick several; the answer is then a list",
+ "type": "boolean"
+ },
+ "optionImageUrls": {
+ "additionalProperties": {
+ "format": "uri",
+ "type": "string"
+ },
+ "description": "A picture to show on each choice, keyed by option text",
+ "propertyNames": {
+ "maxLength": 255,
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "optionOutcomes": {
+ "additionalProperties": {
+ "description": "Stable identifier of the result, such as dry-skin",
+ "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "description": "The result each choice counts toward in an outcomes quiz, keyed by option text",
+ "propertyNames": {
+ "maxLength": 255,
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "optionPoints": {
+ "additionalProperties": {
+ "maximum": 1000,
+ "minimum": -1000,
+ "type": "integer"
+ },
+ "description": "Points each choice adds to the score of a points quiz, keyed by option text; may be negative",
+ "propertyNames": {
+ "maxLength": 255,
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "options": {
+ "items": {
+ "maxLength": 255,
+ "minLength": 1,
+ "type": "string"
+ },
+ "maxItems": 100,
+ "minItems": 1,
+ "type": "array"
+ },
+ "required": {
+ "type": "boolean"
+ },
+ "showIf": {
+ "description": "Ask only after a matching answer; otherwise skipped and not required",
+ "properties": {
+ "anyOf": {
+ "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
+ "items": {
+ "maxLength": 255,
+ "type": "string"
+ },
+ "maxItems": 100,
+ "minItems": 1,
+ "type": "array"
+ },
+ "fieldKey": {
+ "description": "The earlier question this depends on",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "fieldKey",
+ "anyOf"
+ ],
+ "type": "object"
+ },
+ "type": {
+ "const": "select",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "key",
+ "label",
+ "required",
+ "options"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "description": "The field's key in its form",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "label": {
+ "maxLength": 255,
+ "minLength": 1,
+ "type": "string"
+ },
+ "required": {
+ "type": "boolean"
+ },
+ "showIf": {
+ "description": "Ask only after a matching answer; otherwise skipped and not required",
+ "properties": {
+ "anyOf": {
+ "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
+ "items": {
+ "maxLength": 255,
+ "type": "string"
+ },
+ "maxItems": 100,
+ "minItems": 1,
+ "type": "array"
+ },
+ "fieldKey": {
+ "description": "The earlier question this depends on",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "fieldKey",
+ "anyOf"
+ ],
+ "type": "object"
+ },
+ "type": {
+ "const": "checkbox",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "key",
+ "label",
+ "required"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "description": "The field's key in its form",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "label": {
+ "maxLength": 255,
+ "minLength": 1,
+ "type": "string"
+ },
+ "marketingOptIn": {
+ "default": false,
+ "description": "Checking this box subscribes the person to the brand's marketing email",
+ "type": "boolean"
+ },
+ "required": {
+ "type": "boolean"
+ },
+ "showIf": {
+ "description": "Ask only after a matching answer; otherwise skipped and not required",
+ "properties": {
+ "anyOf": {
+ "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
+ "items": {
+ "maxLength": 255,
+ "type": "string"
+ },
+ "maxItems": 100,
+ "minItems": 1,
+ "type": "array"
+ },
+ "fieldKey": {
+ "description": "The earlier question this depends on",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "fieldKey",
+ "anyOf"
+ ],
+ "type": "object"
+ },
+ "type": {
+ "const": "consent",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "key",
+ "label",
+ "required"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "key": {
+ "description": "The field's key in its form",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "label": {
+ "maxLength": 255,
+ "minLength": 1,
+ "type": "string"
+ },
+ "required": {
+ "type": "boolean"
+ },
+ "showIf": {
+ "description": "Ask only after a matching answer; otherwise skipped and not required",
+ "properties": {
+ "anyOf": {
+ "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
+ "items": {
+ "maxLength": 255,
+ "type": "string"
+ },
+ "maxItems": 100,
+ "minItems": 1,
+ "type": "array"
+ },
+ "fieldKey": {
+ "description": "The earlier question this depends on",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "fieldKey",
+ "anyOf"
+ ],
+ "type": "object"
+ },
+ "type": {
+ "const": "file",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "key",
+ "label",
+ "required"
+ ],
+ "type": "object"
+ },
+ {
+ "description": "Never shown; filled from a link parameter with the field's key, or from code",
+ "properties": {
+ "key": {
+ "description": "The field's key in its form",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "label": {
+ "maxLength": 255,
+ "minLength": 1,
+ "type": "string"
+ },
+ "required": {
+ "type": "boolean"
+ },
+ "showIf": {
+ "description": "Ask only after a matching answer; otherwise skipped and not required",
+ "properties": {
+ "anyOf": {
+ "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
+ "items": {
+ "maxLength": 255,
+ "type": "string"
+ },
+ "maxItems": 100,
+ "minItems": 1,
+ "type": "array"
+ },
+ "fieldKey": {
+ "description": "The earlier question this depends on",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "fieldKey",
+ "anyOf"
+ ],
+ "type": "object"
+ },
+ "type": {
+ "const": "hidden",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "key",
+ "label",
+ "required"
+ ],
+ "type": "object"
+ },
+ {
+ "description": "Starts a new step; every question up to the next section is one step. Never answered",
+ "properties": {
+ "key": {
+ "description": "The field's key in its form",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "label": {
+ "description": "The step's title",
+ "maxLength": 255,
+ "minLength": 1,
+ "type": "string"
+ },
+ "required": {
+ "const": false,
+ "type": "boolean"
+ },
+ "type": {
+ "const": "section",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "key",
+ "label",
+ "required"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "bookableKey": {
+ "maxLength": 120,
+ "minLength": 1,
+ "type": "string"
+ },
+ "key": {
+ "description": "The field's key in its form",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ },
+ "label": {
+ "maxLength": 255,
+ "minLength": 1,
+ "type": "string"
+ },
+ "required": {
+ "type": "boolean"
+ },
+ "routing": {
+ "description": "Book a different event type depending on an earlier answer",
+ "properties": {
+ "bookableKeys": {
+ "additionalProperties": {
+ "maxLength": 120,
+ "minLength": 1,
+ "type": "string"
+ },
+ "description": "The event type to book for each choice; a choice not listed books the field's own bookableKey",
+ "propertyNames": {
+ "maxLength": 255,
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "fieldKey": {
+ "description": "An earlier one-answer multiple-choice question",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "fieldKey",
+ "bookableKeys"
+ ],
+ "type": "object"
+ },
+ "showIf": {
+ "description": "Ask only after a matching answer; otherwise skipped and not required",
+ "properties": {
+ "anyOf": {
+ "description": "Answers that show this question; true/false for checkboxes, digits for numbers, any pick for multi-select",
+ "items": {
+ "maxLength": 255,
+ "type": "string"
+ },
+ "maxItems": 100,
+ "minItems": 1,
+ "type": "array"
+ },
+ "fieldKey": {
+ "description": "The earlier question this depends on",
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "fieldKey",
+ "anyOf"
+ ],
+ "type": "object"
+ },
+ "type": {
+ "const": "slot",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "key",
+ "label",
+ "required",
+ "bookableKey"
+ ],
+ "type": "object"
+ }
+]