WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
How to Enable Text field if option is not present in dropdown select? (4 posts)

  1. cablop
    Member
    Posted 10 months ago #

    We need to create a dropdown select with some cities, if the city is not present in the options, then a text box is enabled for the user to manually type it, if the option is present that text input should be not visible.

    How can we accomplish that in CF7?

    Thanks in advance.

    http://wordpress.org/plugins/contact-form-7/

  2. buzztone
    Member
    Posted 10 months ago #

    Looks like you are looking for Conditional Logic which is not available in the Contact Form 7 plugin. It can be done via custom programing but you would need to be rather skilled at WordPress development using PHP. Some of the premium Form plugins do offer Conditional Logic including Gravity Forms, Quform and Ninja Forms.

  3. cablop
    Member
    Posted 10 months ago #

    Yes, i'm looking for some conditional logic in the form.

    Do you say it could be done via PHP + JavaScript coding? I'm PHP programmer and the API of WordPress is simple enough. Do you have any good pointers to give me on that topic?

    I'll check Quform and Ninja Forms, Gravity Forms is too expensive for us just to be used on one or maybe two forms.

  4. buzztone
    Member
    Posted 10 months ago #

    RE: Do you have any good pointers to give me on that topic?

    I would start by looking at how some of the premium form plugins implement conditional logic. See http://www.gravityhelp.com/documentation/page/ConditionalLogic

Reply

You must log in to post.

About this Plugin

About this Topic