We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Original issue
The following code doesn't change a default value for a File question in React: the Allow Multiple Files checkbox remains unchecked.
let prop = Serializer.getProperty("file", "allowMultiple"); prop.value = true; prop.defaultValue = true;
Example.
In Knockout, the above code actually changes the Allow Multiple Files checkbox value: However, the JSON schema comes with a wrong value:
{ "type": "file", "name": "question1", "allowMultiple": false }
jQuery: Example.
The text was updated successfully, but these errors were encountered:
resolve #5711 File Question - Cannot programmatically set a default v…
d692aac
…alue for the allowMultiple property
tsv2013
OlgaLarina
Successfully merging a pull request may close this issue.
Original issue
The following code doesn't change a default value for a File question in React: the Allow Multiple Files checkbox remains unchecked.
Example.
![image](https://user-images.githubusercontent.com/22372972/221484123-0ea9efac-881c-4083-a6a0-d930d5cded39.png)
In Knockout, the above code actually changes the Allow Multiple Files checkbox value:
![image](https://user-images.githubusercontent.com/22372972/221484218-8adee726-e29d-4b54-9ac7-7b13d61973cd.png)
However, the JSON schema comes with a wrong value:
Example.
jQuery: Example.
The text was updated successfully, but these errors were encountered: