WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] how to set onchange event for radio button in contact form 7 (3 posts)

  1. gossipcrunch
    Member
    Posted 9 months ago #

    I want to use 3 radio buttons to set onchange event with three different ids. I can see that its working if I put the raw html tag in the form field but as I am not using any shortcode so the information is not sent to the admin email id. Can someone help and what shortcode to use in the message body so that the information would be sent to admin email id. Here's the code I am using

    <input onChange="update_price()" id="quotespeed_economy" class="etquote_field" type="radio" name="quotespeed" value="Economy" > </input><label for="quotespeed_economy">Economy</label>   

    <input onChange="update_price()" id="quotespeed_normal" class="etquote_field" type="radio" name="quotespeed" value="Regular" checked="Yes"> </input><label for="quotespeed_normal">Normal</label>   

    <input onChange="update_price()" id="quotespeed_express" class="etquote_field" type="radio" name="quotespeed" value="Express" > </input><label for="quotespeed_express">24h Express</label>

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

    [No bumping. If it's that urgent after just 1 hour, consider hiring someone.]

  2. gossipcrunch
    Member
    Posted 9 months ago #

    Ok. I managed to solve the issue by myself. However, a big thanks to the forum members for not responding. Otherwise I couldn't have learnt that even if you put raw HTML tags in the form field you still can get the information mailed to admin email if you know how to use the shortcode for the same in the message field.

  3. amrdys
    Member
    Posted 6 days ago #

    Hey gossipcrunch

    Can you pleeeease share your fix for the good people! :) I've done the onChange event on a select menu and it's working on the form, but can't figure out the shortcode to place in mail to get the submissions. because it's in brackets <> and not square brackets []

Reply

You must log in to post.

About this Plugin

About this Topic