• Resolved ABTUK webmaster

    (@abtuk-webmaster)


    I have a 2-page form. The 1st page has 4 fields:
    – 1 required text field
    – 1 required email field
    – 1 Yes/No checkboxes with exclusive attribute (essentially the same as radio buttons, but displayed as square boxes instead of round buttons)
    – 1 Yes/No radio buttons

    If I provide values for all 4 1st page fields and click “Next”, and then click page 2’s “Back” button, page 1 is redisplayed with the original contents in the text and email fields, but without any selections in the radio buttons or checkboxes.

    Thus far, the symptoms are identical to those reported in:
    https://www.ads-software.com/support/topic/contact-form-7-doest-not-store-session-for-radio-buttons-1

    Continue …

    Optional action with CF7 Multi-Step Forms v1.4 (but omit with v1.4.1):
    Clicking the 1st page’s “Next” button reports validation errors for both the radio buttons and checkboxes (because both are required, but neither is set).

    Scenario 1:
    Reselecting the original values for the radio buttons & checkboxes, and clicking “Next” causes page 2 to be displayed and after completing the remaining fields, form submission completes normally. All OK so far. However …

    Scenario 2:
    If I select values for the radio buttons and/or checkboxes that are different from their original values and click “Next”, the email sent at the end of form submission lists the original values for these radio/checkboxes, and not the amended values that I expected to be listed.

    Example (in which original selection for radio button was “Yes”):
    1st scenario: select radio button “Yes”. In email, [radio-1] expands to “Yes”.
    2nd scenario: select radio button “No”. In email, [radio-1] expands to “Yes”.
    Surely in the 2nd scenario [radio-1] should expand to “No” ?

    Versions:
    WordPress v4.0.1
    Contact Form 7 v4.0.1
    Checkmail Validation for Contact Form 7 v0.2
    Contact Form DB v2.8.17
    Contact Form 7 Multi-Step Forms either v1.4 or v1.4.1

    For the next few weeks (check updates to this thread for withdrawal of the facility), a tester form is available at https://www.biodanza4me.com/cf7msm-1 This website currently uses downlevel CF7 Multi-Step Forms v1.4 to avoid the complications introduced by v1.4.1. Try it. A copy of the form’s email will be sent to you. And please add details to this thread if your results differ from mine.

    Thanks,
    Pete

    https://www.ads-software.com/plugins/contact-form-7-multi-step-module/

Viewing 8 replies - 1 through 8 (of 8 total)
  • will get back to this soon.

    Thanks

    Plugin Author webheadcoder

    (@webheadllc)

    Sorry this took so long to get to. The radio button problem should be fixed now in v1.4.2. Please let me know if there are still problems. I will get to it as soon as i can.

    Thread Starter ABTUK webmaster

    (@abtuk-webmaster)

    Hello webheadllci,

    With v1.4.2 the cf7msm shortcodes in my form are not expanded, but are displayed on the form “as is”, for example in html source received at my browsers (both Chrome and IE):
    On my first page:
    [hidden step "1-2"]
    instead of (in v1.4):
    <input type="hidden" name="step" value="1-2" class="wpcf7-hidden"/>

    On my 2nd page:
    [back class:wpcf7-form-control class:wpcf7-submit]
    instead of (in v1.4):
    <input type="button" value="Back" class="wpcf7-form-control wpcf7-back wpcf7-submit"/>

    and

    [hidden step "2-2"]
    instead of (in v1.4):
    <input type="hidden" name="step" value="2-2" class="wpcf7-hidden"/>

    All caching is cleared and disabled.

    Any ideas?

    Pete

    Plugin Author webheadcoder

    (@webheadllc)

    Can you disable all other plugins besides contact form 7 and see if it works. and can you update the plugin on this site if it still isn’t working?
    https://www.biodanza4me.com/cf7msm-1/

    It works fine here:
    https://webheadcoder.com/contact-form-7-multi-step-form/

    Thread Starter ABTUK webmaster

    (@abtuk-webmaster)

    Hello Webheadllc,

    I do not know why, but (without following your suggestion to disable other plugins) the problem I reported in my previous post now no longer occurs, and I can confirm that the settings for radio buttons and non-exclusive checkboxes are retained across a Next|Back|Next sequence when v1.4.2 of the plugin is used.

    However a problem remains for exclusive checkboxes, for example, those defined with keyword “exclusive” in the form, like this:
    [checkbox* like-chocolate exclusive "Yes" "No"]
    For such checkboxes:
    – the original setting is not redisplayed after Next|Back.
    – After Next|Back if I select a different option and press Next, the originally selected value is used and not the different option.

    You can test this yourself at https://www.biodanza4me.com/cf7msm-1 Plugin v1.4.2 is active.

    Note: the “It works fine here” link that you provided introduced me to shortcodes like [form field-name] which can be used to display previous answers on a subsequent page. I have amended the second page of my form to do this so that you can see immediately what values have been carried forward from the first page.

    Regards,
    Pete Simpson

    Thread Starter ABTUK webmaster

    (@abtuk-webmaster)

    Further to my previous update: I got agreement from my users to take the website off the air for a couple of hours, and retested after deactivating all plugins except CF7 and CF7-MultiStep Forms. I confirm that also with only these 2 plugins activated the “exclusive checkbox” problem still occurs.

    To allow my website to function normally again, I have now reactivated all plugins. You can see the problem yourself at https://www.biodanza4me.com/cf7msm-1. CF7-MSM v1.4.2 is active.

    Plugin Author webheadcoder

    (@webheadllc)

    Hi ABTUK,

    Please try version 1.4.3. The exclusive checkboxes should be saving now when clicking the back button.

    Thread Starter ABTUK webmaster

    (@abtuk-webmaster)

    Hello Weabheadllc,

    We’re there! With v1.4.3 the exclusive checkbox values entered are now redisplayed after Next / Back. Topic resolved. Thank you.

    Pete.

    PS: During testing with v1.4.3 I noticed a perhaps-related problem with the value of 2nd-page fields defined as [form field-name]. I will open a new topic for this.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Radio button & checkbox amendments not honoured after Next/Back/Next sequence’ is closed to new replies.