Support » Plugin: Contact Form 7 - Conditional Fields » add or remove required from a field

  • Resolved oaron

    (@oaron)


    Hello,
    if a field is hidden, but the field is required, cf7 can’t send the form, because a required field is empty.
    Is it possible to add required if field appears for the user? In this case it would be require, but if it is a hidden by user selection, it is not.

Viewing 1 replies (of 1 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    if a field is hidden, but the field is required, cf7 can’t send the form, because a required field is empty.

    If everything is working correctly, required fields should not trigger validation if they are inside a hidden group.

    Is it possible to add required if field appears for the user?

    This is already the case.

    Please check https://conditional-fields-cf7.bdwm.be/simple-form/

    After the question “wanna fill out some required fields?”, select “no” and try to submit the form. You will see it works, although there are required fields inside the hidden group.

Viewing 1 replies (of 1 total)
  • The topic ‘add or remove required from a field’ is closed to new replies.