You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the function that validates required fields has a specific check for checkboxes but neglects to check radio boxes.
The issue appears to be in \App_Plugins\UmbracoForms\Assets\themes\default\umbracoforms.js at line 81
In my screenshot i have added an or check to fix the problem.
Steps to reproduce
Note: you must be running the aspnet-validation javascript - jquery validate is not effected.
I used the @Html.RenderUmbracoFormDependencies() method to render the dependencies and it automatically loaded aspnet-validation, I don't know how this method determines what to load.
Create a new form with a radio list input field and make it mandatory.
Submit the form.
Expected result
The front end validation tells the user that the field is required.
Actual result
The form submits and the back end validation runs, the form is then rendered with the backend validation showing
The text was updated successfully, but these errors were encountered:
Thanks for the report @james-whittington1 - we'll have to have a look at this! Good that you found a workaround for now, we'll probably add that to the code as well, thanks! 👍
umbrabot
removed
the
state/sprint-idea
This issue doesn't fit in the next few sprints but we're reviewing it regularly for a later sprint
label
Mar 2, 2021
the function that validates required fields has a specific check for checkboxes but neglects to check radio boxes.
The issue appears to be in \App_Plugins\UmbracoForms\Assets\themes\default\umbracoforms.js at line 81
In my screenshot i have added an or check to fix the problem.
Steps to reproduce
Note: you must be running the aspnet-validation javascript - jquery validate is not effected.
I used the @Html.RenderUmbracoFormDependencies() method to render the dependencies and it automatically loaded aspnet-validation, I don't know how this method determines what to load.
Create a new form with a radio list input field and make it mandatory.
Submit the form.
Expected result
The front end validation tells the user that the field is required.
Actual result
The form submits and the back end validation runs, the form is then rendered with the backend validation showing
The text was updated successfully, but these errors were encountered: