• Resolved smangas

    (@smangas)


    According to the specifications, when you hide a required field it should not give an error, but it doesn’t work for me.
    I work with a plugin for payments through Stripe (Accept Stripe Payments Using Contact Form 7 by ZealousWeb) and even though I have the tag inside a group, the form does not validate and shows that it could not be sent due to some error.

    [group paystripe clear_on_hide]
    [stripe* stripe-1 “Pay”][submit “Pay”]
    [/group]

    I have it set this way and it always gives an error even if it is hidden.
    The ‘*’ in the stripe field cannot be removed because it is required for the plugin to work.

    Thanks

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

    (@jules-colle)

    I have it set this way and it always gives an error even if it is hidden.
    The ‘*’ in the stripe field cannot be removed because it is required for the plugin to work.

    This is the reason that it doesn’t work. The plugin is not designed to allow the placement of the stripe tag in a form where it’s not filled out. This check is done on another level, and fixing this from my side would be a hack. The fix needs to happen on the side of the stripe plugin.

    Something you could try, that might work, is to use disable_on_hide https://conditional-fields-cf7.bdwm.be/disable_on_hide/

    If the plugin is made in a sensible manner it should not take into account the field when it’s disabled, but there is a big chance that they simply didn’t anticipate this use case.

    Anyway, feel free to give it a try. You’ll need the Pro plugin, but if it doesn’t work for you, you get a full refund if you let me know within 30 days.

    Thread Starter smangas

    (@smangas)

    Thank you very much Jules,
    I talk to my client to try the Pro version.
    I need to fix this problem and now as we have it it is not working correctly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Required fields’ is closed to new replies.