formio / formio.js

JavaScript powered Forms with JSON Form Builder
https://formio.github.io/formio.js
MIT License
1.83k stars 1.04k forks source link

[Angular] renderOptins witih noDefaults: true for radio button, select, number type throws error #5534

Open rosieweqollab opened 3 months ago

rosieweqollab commented 3 months ago

*In Angular adding a renderOptions with noDefaults: true for radio button, select, number type throws error Hi, my problem is that I want to submit the form with only those question that filled out only by the user I saw in the docs that using noDefaults and it will filter the submit data, however it isn't the case. When I set the noDefault to true, it returns an error in the console which leads not to load the form and it showing the loading spinner.

Version/Branch angular v17 "@formio/angular": "^7.0.0", "@formio/js": "^5.0.0-rc.39",

To Reproduce Steps to reproduce the behavior:

  1. set [render]= "{noDefault: true}" in angular

Expected behavior It should not include in the submit all those not filled out by the user radio button no default value

Screenshot 2024-03-14 at 1 31 03 AM

how i set it in the code angular

Screenshot 2024-03-14 at 1 31 26 AM

form keeps on loading with the spinner might due to console error

Screenshot 2024-03-14 at 1 31 54 AM

console error

Screenshot 2024-03-14 at 1 32 02 AM