answer
Submits an answer for an interactive element. Each selected option receives one vote.
Parameters
options
The indices of the selected answer options.
Throws
on failure, e.g., if the element is not open or the selection is invalid.
Submits an answer for an interactive element. Each selected option receives one vote.
Parameters
options
An array of the selected answer option indices.
Throws
on failure, e.g., if the element is not open or the selection is invalid.
Submits a detailed answer for an interactive element, allowing for multiple votes per option.
Parameters
answer
An Answer object containing the user's selection and vote distribution.
Throws
on failure, e.g., if the element is not open or the vote is invalid.