Support » Plugin: Contact Form 7 » how to set onchange event for radio button in contact form 7

  • Resolved gossipcrunch


    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>

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    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 []


    Can you please share the code you are using.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to set onchange event for radio button in contact form 7’ is closed to new replies.