Contact Form 7 - Select and Show (3 posts)

  1. neaume
    Posted 5 years ago #

    Hello fellow-WordPress users,

    I have a question regarding the plugin Contact Form 7.

    I am building a contact form, which goes great with this plugin. But I have have a question. I created a droplist (support and products) for the tag Subject.

    If the user select Products, I would like to show a few checkboxes beneath the tag. If the user select Support, nothing will change.

    1. Select a subject
    2. OnSelect 'Products' show checkboxes
    3. OnSelect Support, nothing changes

    Is this possible? And could you tell my how to do this?


  2. flamenco
    Posted 5 years ago #

    Ah, "onselect", an old-school Javascript technique that sounds like the Dreamweaver code I get asked to fix all the time. :)

    The functionality you're describing is very much Ajax type stuff. You could do this with JQuery programming or another Javascript framework. Definitely not with the HTML that Contact Form 7 generates, though.

    Actually, if you were a Javascript programmer, you could write code to make the "onselect" stuff work, too. But no, not with Contact Form 7 out-of-the-box.

    Good luck.

  3. neaume
    Posted 5 years ago #

    Aaah thank you :)

Topic Closed

This topic has been closed to new replies.

About this Topic