• Resolved Piotr Szcze?niak

    (@piotrszczesniak)


    Hello!

    I have this scenario:

    Once the checkbox [] I want to upload a file is checked I want to show another field [acceptance] forcing users to accept the image privacy polity before sending the form.

    However, I encountered an issue: even if the checkbox [] I want to upload a file isn’t selected, thus the [acceptance] field isn’t visible the form is still validating the [acceptance] field and not allowing to send the form.

    Any ideas for a walkaround?

    https://contactform7.com/acceptance-checkbox/

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

    (@jules-colle)

    Correct, the acceptance field will not work inside a hidden group.

    You could use a simple required checkbox instead.

    Thread Starter Piotr Szcze?niak

    (@piotrszczesniak)

    …the checkbox is a partial solution as it doesn’t allow for URLs, so e.g. creating a checkbox with a URL to T&C isn’t possible.

    Plugin Author Jules Colle

    (@jules-colle)

    Hmm.. what about adding the optional attribute to the acceptance field? https://contactform7.com/acceptance-checkbox/

    Thread Starter Piotr Szcze?niak

    (@piotrszczesniak)

    I used the below code, it’s good enough ??

    <p><small>[checkbox* acceptance-accept-promo-terms use_label_element "* I consent to the processing of my personal data and the use of the photo sent in accordance with the "]<a href='/promotion-code-terms-and-conditions/'> Promotion Regulations.</a></small></p>

    Thanks! Super useful plugin ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘hidden acceptance checkbox’ is closed to new replies.