• Hi,
    I am trying to include a radio input group into a repeatable field and I cannot get it working.

    Form tab code:

    [field_group delegates id="delegates" tabindex:1]
        [radio radio-food use_label_element default:1 "None" "Halaal" "Vegetarian" "Vegan" "Kosher" "Other"]
    [/field_group]
    
    [submit "Register"]

    When form is submitted, I get the error:
    “One or more fields have an error. Please check and try again.”

    Is there anything wrong in the code snippet above?

    • This topic was modified 4 years, 10 months ago by susannakosic.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Felipe Elia

    (@felipeelia)

    Hi Susanna,

    Sorry to read you’re having problems with the plugin. That page is password-protected, so I couldn’t see it in action. Did you try changing the radio name from “radio-food” to just “food”?

    Thanks!

    Plugin Author Felipe Elia

    (@felipeelia)

    Actually, now I saw your message here. For organization purposes, let’s keep our communication here on this topic, ok? ??

    It seems there is a problem with the fields’ names… In the case of the emails, can you please test it without setting an id? Like this:

    [field_group delegates id="delegates" tabindex:1]
        <label>Your Email (required) [email* your-abc]</label>
    [/field_group]
    [submit "Register"]

    Thanks

    Thread Starter susannakosic

    (@susannakosic)

    Hi Felipe,
    thank you for replying so quickly.

    Regarding the radio button group issue, I′ve changed the CF7 code to:

    [field_group delegates id="delegates" tabindex:1]
     [radio food use_label_element default:1 "None" "Halaal" "Vegetarian" "Vegan" "Kosher" "Other"]
    [/field_group]
    [submit "Register"]

    Apparently it does not make a difference, as results in “One or more fields have an error. Please check and try again.” error on form submit.

    Regarding the issue with the required input text inside a repeatable field, I′ve removed the id attribute from the input as was described in this topic, so that CF7 code looks like:

    [field_group delegates id="delegates" tabindex:1]
        <label>Your Email (required)[email* your-abc]</label>
    [/field_group]
    [submit "Register"]

    Still, no luck. On submitting the form I get the same error: “One or more fields have an error. Please check and try again.”.

    ATM the workaround to keep form functionality after the upgrade was to remove the required attribute from inputs in repeatable fields, and replacing radio buttons for text inputs as I could not figure out a way to get validation working with these 2 types.

    Plugin Author Felipe Elia

    (@felipeelia)

    Hi Susanna,

    I’ve tested both codes here and they both worked well (WP 5.3.2 and TwentyTwenty Theme).

    Can you please copy and paste your entire form AND list your theme and active plugins? That may help us to find where the problem really is (some incompatibility, probably). It would be nice if you could give a look at the “Network” tab in your browser Developer Tools. Right after clicking on Register it’ll trigger a request to the CF7, the response to that request may also help us.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Radio input validation error’ is closed to new replies.