Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Matt Smith 79 posts 110 karma points
    Jul 21, 2017 @ 12:30
    Matt Smith
    0

    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

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Jul 24, 2017 @ 07:20
    Dennis Aaen
    0

    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

  • Matt Smith 79 posts 110 karma points
    Jul 25, 2017 @ 09:12
    Matt Smith
    0

    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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies