• Resolved reedp

    (@reedp)


    I’ve been using CF7 for a long time, and the form I use has been stable and static for months. I’ve been doing the updates to both the CF7 plugin, the CF7 Conditional logic plugin, and the Divi CF7 Styler plugin. Seems like a lot of recent updates. The conditional logic was working yesterday, based on the contents of the email that was sent at the time the form was submitted. Today I went to look at making some changes to the form, and when I went to the Conditional Fields tab I noticed that while all of the conditions were listed, for each of the the “if” field was “–select field–” as if it had never been set. When I pull down one of the select lists, the list of available fields doesn’t include all of the fields defined in the form, but DOES include the files defined in each of the [groups]. Here is a snippet:

    [radio previousProGen “yes” “no”]
    [group previousProGencheck inline]Which ProGen group number and the mentor’s name?<br /> [text groupProGen minlength:0 maxlength:30][/group]

    [submit “Submit”]

    In this example, the select list only lists “groupProGen” and not “previousProGen”.

    The other indication I noticed (you can se this in the live form through the link above) that the conditional fields are not setup is that the data field from the [group] tags is showing up in the displayed form. Look at many of the yes/no questions and you’ll see the block of text for additional details below it that normally was only showing up when “yes” was selected in the question.

    CF7 conditional fields plugin is definitely installed – if it were not I don’t think that the Conditional fields tab would be displayed in the CF7 edit form page.

    Has something changed very recently in CF7 plugin about how conditionals work? I did updates last night to the plugin – did that cause this? As I said earlier, it was all working earlier yesterday. The above link shows the live form, and as you can see, u

    Thanks everyone for the help!
    reed

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

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

    (@jules-colle)

    Could you set up the form here https://conditional-fields-cf7.bdwm.be/form-tester/ so I can test it out? Thanks

    Thread Starter reedp

    (@reedp)

    thanks, I just loaded it, the preview panel shows the same problem I see live on my website.
    https://conditional-fields-cf7.bdwm.be/form-tester/?hash=ee516bd5587a96cde8991d8469dc9e1d

    thanks
    reed

    Thread Starter reedp

    (@reedp)

    fyi, I tried the code snippet from the post above in two other wp installations, including one on an entirely different hosting service, both of which were new CF7 installations, and had the same problem.
    reed

    Plugin Author Jules Colle

    (@jules-colle)

    Could you update the conditions the way they are intended instead of the [-1] ?

    Thread Starter reedp

    (@reedp)

    I’d love to, but that is the problem! The radio field for the yes/no response is not listed in the available “if” fields, only the text field for the field to be displayed if the condition is met is listed. I tried to manually enter the name of the radio field “previousProGen” using text mode, but when I hit “save” it reverted back to “-1”
    BUT, in another test if I create a [text] field, it IS listed, so this seems to be related to radio fields. As I said in the initial posting, this form hasn’t been changed in months, so I’m not sure why the current problem came up. The email message that is send when submitted displays the correct contents for the radio field, which seems to indicate that CF7 is recognizing it and processing it.
    thanks
    reed

    Plugin Author Jules Colle

    (@jules-colle)

    Aha, I noticed that you are putting 2 spaces after radio in most cases. For example: [radio previousProGen "yes" "no"]. If you remove the extra space like this [radio previousProGen "yes" "no"] it should work.

    This is definitely a bug in the code, but for now you should be able to fix it by getting rid of the extra space.

    Thread Starter reedp

    (@reedp)

    That’s it! Thanks for finding that, not sure where the double-space came from.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Conditional fields not listing correctly’ is closed to new replies.