octo/questions
to your Octo-Capabilities
header.questions
array to both the product and the unit schema. Questions assigned to the product schema are intended once for the whole booking, and questions on the unit schema are intended for each unit item belonging to that unit.id
required
label
description
inputType
date
- datetime-local
- email
- file
- number
- tel
- text
- time
- url
Although not strictly a input type, we also support the following types:
- select
- textarea
selectOptions
inputType
is select
then this will be an array of options, each option will be a JSON object with two fields label
and value
you should display this as:
<option value="{value}">{label}</option>
inputType
is anything other than select
then the selectOptions
array will be empty.questionId
value should equal the question.id
from the section before.booking.answers
and booking.unitItems[].answers
the value
field will be null
if they haven't been answered already.