We are seeing inconsistent behaviour in umbraco forms.
Please can some one confirm if it is possible to hide a mandatory field with logic?
For example if the response to question 1 does not result in question 2 being shown to the user, even if question 2 is set as mandatory, because it was not shown the user can still progress to question 3?
We've been doing more investigation and will continue to do so. It looks like the issue may be caused by a new form element we have developed in house.
As far as we can tell using the standard contour functions, a hidden mandatory field will be ignored if the logic never causes the field to be shown - so the form can be submitted if the user doesn't see the field, or if the user sees the field and completes it - which is expected behaviour.
Umbraco logic and mandatory fields
Hi all
We are seeing inconsistent behaviour in umbraco forms.
Please can some one confirm if it is possible to hide a mandatory field with logic?
For example if the response to question 1 does not result in question 2 being shown to the user, even if question 2 is set as mandatory, because it was not shown the user can still progress to question 3?
Thanks, Matt
Hi Matt,
I found a thread that perhaps can help you to get a step further.
Try to see this one, https://our.umbraco.org/forum/umbraco-pro/contour/60840-Umbraco-Forms-Validation-for-mandatory-conditional-fields
Hope this can help you.
/Dennis
Hi Dennis
We've been doing more investigation and will continue to do so. It looks like the issue may be caused by a new form element we have developed in house.
As far as we can tell using the standard contour functions, a hidden mandatory field will be ignored if the logic never causes the field to be shown - so the form can be submitted if the user doesn't see the field, or if the user sees the field and completes it - which is expected behaviour.
I'll update here if we find more info.
Thanks, Matt
is working on a reply...