-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Description
Unable to get validation values for question type multiple_choice. When multiple selection option is set on this question type, a number of options the user must select can be set. The validation JSON retrieved from https://api.typeform.com/forms for this question type when this option is set is coming back something like this:
"validations": {
"required": true,
"min_selection": 1,
"max_selection": 5
},
The values min_selection and max_selection are not defined as valid properties in the library. The Validations interface specifies having min_value and max_value properties, but no min_selection and max_selection.
Expected Behavior
The min_selection and max_selection values should be added to the Validations interface, or, if these aren't really different than the value concept, the API response could change the response to min_value and max_value like all the other question types.
Current Behavior
The properties min_selection and max_selection are not recognized by the compiler.
Steps to Reproduce
Pull client version 2.4.4 and try to use it to access the min_selection and max_selection properties.
Screenshots
Your Environment
- Client Version: 2.4.4
- Node.js Version: 20.17.0
- NPM Version: 10.8.2
- Browser Name and Version: Chrome 132.0.6834.160
- Operating System and Version: Mac Sequoia 15.3