Support » Plugin: Contact Form 7 - Conditional Fields » Clear on hide not working

  • Resolved Funkan

    (@funkan)


    I am trying to make a form with multiple conditions, and they work perfectly. But selections won’t be cleared if you change your mind, they are still there if I change option in dropdown menu, and then go back.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi Funkan,

    I’ve had a look at this and I’m having the same problem. It seems that the part of the code which is supposed to clear the data is actually ignoring any hidden fields. I guess this is so if you had any inputs with type=”hidden” it wouldn’t strip the values, but it’s stopping any fields which have been hidden from being cleared. I’ve changed mine to only ignore inputs with type=”hidden” and not everything which is hidden. It might not be the solution but it seems to have worked for mine.

    I’m hoping the author can fix these issues soon, this is a great plugin otherwise.

    Plugin Author Jules Colle

    (@jules-colle)

    I will look into it.

    @jules-colle

    I’m having the same issue, I have a field which is doing calculation and when one field involved in the calculation is hidden it’s unfortunately not cleared šŸ™ this causes the calculation to be wrong

    @jules-colle

    Me too, same issue… šŸ™

    If I change my mind with a dropdown menu, the right fields are hidding but it keeps their previously fullfilled value and it’s also wrongly send by email…

    This issue makes me crazy since 2 days…. šŸ˜€

    Thanks for your help!

    • This reply was modified 2 years, 4 months ago by vamospedro.

    Iā€™m also having the same issue… And i cannot fix it… Dear @jules-colle, help us please! šŸ™‚

    Plugin Author Jules Colle

    (@jules-colle)

    I’m closing this, but I have added it to my github issues: https://github.com/pwkip/contact-form-7-conditional-fields/issues/27

    A temporary hint for people experiencing this problem:

    Try to use conditional tags in your email message if you don’t want to display hidden fields in the email, like this:

    [group-1]
      Field 1: [field-1]
      Field 2: [field-2]
    [/group-1]

    This will make sure that everything between the group-1 tags is only outputted if group-1 was visible during form submission.

    Hi @jules-colle,

    Thanks for your answer!
    The problem is not in the email but in mailchimp.

    I can not put conditional tags for the value sent to mailchimp, then the “wrong” hidden values are sent.

    @jules-colle the issue is not with the email but with the actual fields in the form. They aren’t cleared when they are hidden even though the option is turned on.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Clear on hide not working’ is closed to new replies.