• Resolved curroperez

    (@curroperez)


    Good evening, Jules,

    I have the PRO version of your plugin.
    I use it, on a form, to be able to determine some amounts for customers to pay through a bank gateway.

    After many hours I managed to fine tune it to make the form work. But the problem came when I sent the form and redirected it to the payment gateway where I had to send the correct amount.

    In the support I saw that to send only the visible fields of the form there was “disable_on_hide” that placed in the groups would only send the one that was visible.

    I put it to the groups, but when sending the form I had problems of validation of fields (yellow color) and it did not allow me to send the form.

    If I put the other attribute “clear_on_hide”, it passed the form validation, sent it and redirected it but it sent all the form data and I could not select the correct amount.

    I indicate the test made in the tester, in case you could help me.

    https://conditional-fields-cf7.bdwm.be/form-tester/?hash=f9c112d59afbc031258ae76e821fe112

    Greetings and thank you very much

    • This topic was modified 1 year, 3 months ago by curroperez.

    The page I need help with: [log in to see the link]

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

    (@jules-colle)

    Hi there, I’ve send you an email regarding this. I believe the root of the problem is that you are setting disable_on_hide in a way that allows the form being submitted when all groups are hidden. This will disable all the fields, and so the form will be sent without the fields. Therefore the server side validation will fail. If you want to use disable_on_hide, you need to craft your form very carefully in a way that makes sure that of all the fields with duplicate names, exactly one is visible at all times.

    Check https://conditional-fields-cf7.bdwm.be/disable_on_hide/

Viewing 1 replies (of 1 total)
  • The topic ‘disable_on_hide gives validation problems when submitting form’ is closed to new replies.