• I’m testing clones of radios and exclusive checkboxes across multiple tabs.
    There are only 2 options: Yes or No

    The same radios do prefill properly when placed outside of tabs.
    However, the checkboxes do not.

    The submitted form post is being saved correctly. The data is there and formatted properly, it just isn’t being sent to the form prefill like the rest of the fields. Date and dropdown are working inside tabs.

    I tried the prefill filter for the checkboxes outside of tabs and that caused all but the first unrelated tabs to disappear and none of the fields in the form to be filled.

    • This topic was modified 2 years, 2 months ago by IT Hertz.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    odd. It’s possible there is a bug in the js script that prefills the form fields.

    Is you form available online for me to take a look?

    Thread Starter IT Hertz

    (@it-hertz)

    A quick form I created for you

    I’m not trying to do anything super complex with the production form, such as tab sections with tab sections or tables within tabs, etc.

    I set all radios to no default and all checkboxes to exclusive mode. The radio outside the tab section gets prefilled correctly. The checkbox does not prefill.

    Radios and checkboxes inside the tabs do not prefill.

    Something else I discovered: checkbox exclusivity only works on the first tab.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    Something else I discovered: checkbox exclusivity only works on the first tab.

    this is soemthing that CF7 plugin will need to fix. It is not the normal use of checkboxes, and as such the CF7 plugin uses a js script to handle this but only initialises the field at the time of the form load. Subsequent fields added when you add more tabs simply do not register with the script.

    I set all radios to no default

    This is a bug, I will fix this in the next release.

    Thread Starter IT Hertz

    (@it-hertz)

    Yes, I can see how that would be a problem with creating new tabs prior to saving, but what about when tabs are saved on submit? Wouldn’t they all init on load?
    The exclusivity is also non-functional for pre-existing tabs beyond the first one.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I will get back to you once I get working on fixing this for the next major release. Is this by any chance stopping you from deploying your form on a live site?

    Thread Starter IT Hertz

    (@it-hertz)

    I can’t use tabs for the site I’m building for the school, since I require Yes/No exclusivity in every cloned tab. The radios and checkboxes are for parents of students to agree to or decline things per student they enroll. They must pick one or the other, they cannot simply leave an option unchecked/unselected, as they will be attaching a digital signature to the form, making it legally binding.
    I can do much of this with radios.

    I’m using toggled sections instead of tabs. It works, but is less aesthetically pleasing.

    While I do require Yes/No controls, I do not require form prefill. It would be nice, but it’s not an absolute necessity.
    I’m sure parents would enjoy being able to review their submitted registration/enrollment form at their leisure after logging into the site. But, I will have CF7 send it to them via email upon submit, so they will still get a copy.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘radio and checkbox not being prefilled in tabs’ is closed to new replies.