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

  1. gossipcrunch
    Posted 3 years 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>


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

  2. gossipcrunch
    Posted 3 years 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. Amr Kamel
    Posted 2 years 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 []

  4. gossipcrunch
    Posted 2 years ago #


    Can you please share the code you are using.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic