• Resolved RizSilverthorn

    (@rizsilverthorn)


    Awesome plugin, really useful. Not sure if this is me or what.

    Copied the example from your tutorial page. The os-selected group is shown when “– Choose your operating system –” is chosen.

    Remove the first_as_label parameter from the operating-system select, and the os-selected group is not shown when “– Choose your operating system –” is chosen.

    Is a new “feature” of CF7 interfering with Conditional Fields?

    Also, the tutorial page demo form doesn’t appear to be working – the groups are not shown due to an “SyntaxError: Unexpected identifier” in the Web Dev console for Firefox and Chrome.

    Otherwise a great plugin! I had to give a 4 star rating instead of 5 because of the above.

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

    (@jules-colle)

    Hi Riz,

    “first_as_label” is a CF7 feature, it tells CF7 that the first option is not actually a valid option, but should be used as a label. The actual value of it isn’t set.
    So in the tutorial there is an error, indeed: the option checking for not equals "–- Choose your operating system –-" is redundant because, as long as first_as_label is used, “–- Choose your operating system –-” will never appear as a value. I’ll fix this, cause I agree it may be misleading. Thanks for reporting.

    Thanks for reporting the JS error as well. It should be fixed now. The reason it occurred is that my development version is synchronized with the live site, I was working on it yesterday, but had to leave in a hurry and so the site had some invalid code for a while. Not the best practice I know ??

    Thread Starter RizSilverthorn

    (@rizsilverthorn)

    Hi Jules,

    Didn’t think to try that. Have done so now but still shows the os-selected group.
    Just checked your demo page and that is doing the same.

    We’ve all done that with live demos at some point! Have upgraded to 5 stars on review.

    Plugin Author Jules Colle

    (@jules-colle)

    Good catch. Seems like something changed in CF7. I have updated the documentation.

    If you use the first_as_label option, the condition should be not equals ""

    Otherwise it should be not equals "–- Choose your operating system –-"

    Thanks for the review! ??

    • This reply was modified 5 years, 9 months ago by Jules Colle.
    • This reply was modified 5 years, 9 months ago by Jules Colle.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘first_as_label breaks show not equal condition’ is closed to new replies.