• Resolved jackwright1234

    (@jackwright1234)


    Hello!

    I am currently trying to use your potentially really helpful plugin for our website’s contact page. However, when I put the group in and set the conditions for a <select> element, the group doesn’t appear.

    <label> Your Name (required)
        [text* your-name] </label>
    
    <label> Your Email (required)
        [email* your-email] </label>
    
    <label> What services are you after? (required)</label>
        [select* theservice include_blank "E-learning video creation" "Online course shop" "Hosting" "E-learning course platform" "Other (please specify)"]
    
    [group specifics]
    <label> Could you specify? </label>
    [textarea textarea-50 multiple placeholder "How many videos do you need? How will we gather the information for the videos? Will you need a professional narrator?"]
    [/group]
    
    <label> Subject (required)
        [text* your-subject] </label>
    
    <label> Your Message (required)
        [textarea* your-message] </label>
    
    [submit "Send"]

    and the condition is:
    show [specifics] if [theservice] equals "E-learning video creation"

    It doesn’t work on my contact page at all.

    Additionally, I have tried Googling the issue but I have come to the conclusion that the cause of my problem is quite unique. I’ve also tried de-activating all of my WordPress plugins to see if they interfere.

    Any ideas or suggestions would be helpful. ??

    WP: 5.2
    Contact form 7: 5.1.1
    Conditional fields: 1.5.4

    Thank you!

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

    (@jules-colle)

    I don’t see anything wrong with the code. Can you give me a link to your page?

    I’m also trying out the plugin for the first time and it’s not working for me. Site is on a dev server so I can’t share a link, sorry! I see no javascript errors in the console, no plugin conflicts so it appears to be failing silently… My thought is it could be related to WordPress 5.2 update?

    relevant form code is:

     <li class="field-wrap cf">
            <span><strong>Choose to Submit an Essay or a Video</strong></span>
            [select contact-essay_or_video "-- Choose submission type --" "Submit Essay" "Submit Video"]
            [group group-essay]
                [file contact-essay_file filetypes:zip,doc,txt]
            [/group]
            [group group-video]
                [text contact-video_url placeholder "youtube.com/watch?v=abCdeFjKlm -or- vimeo.com/12345678"]
            [/group]
        </li>

    and conditional code is:

    show [group-essay] if [contact-essay_or_video] equals "Submit Essay"
    show [group-video] if [contact-essay_or_video] equals "Submit Video"
    Plugin Author Jules Colle

    (@jules-colle)

    @guitarzan please create your own topic

    Thread Starter jackwright1234

    (@jackwright1234)

    Thank you so much for the reply! I see you’re really active on these forums, and that’s so helpful. ??

    The link to the page is https://www.awardls-jack.2dservers.net/contact-us/

    It hasn’t changed since I submitted the thread to this forum.

    Plugin Author Jules Colle

    (@jules-colle)

    The CF scripts are loaded in the header, but they should be loaded in the footer. Could it be that you are calling wp_footer() in your header.php file? Or maybe you are using a plugin that is moving footer scripts to the header?

    Thread Starter jackwright1234

    (@jackwright1234)

    Jules!! You did it! Thing is, I developed the theme for the site, yet knew very little about forms. So, I made a rookie mistake in coding the theme… wp_footer() in the header?! I’m never doing that again!

    Thank you very much for the assistance! Super appreciated. ??

    Thread Starter jackwright1234

    (@jackwright1234)

    Ah, forgot to mark this as resolved!

    Plugin Author Jules Colle

    (@jules-colle)

    Glad you figured it out! Mistakes are the best teachers ??
    But great teachers can be hard to find..

    • This reply was modified 5 years, 10 months ago by Jules Colle.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Grouped fields not appearing with conditions’ is closed to new replies.