Radio buttons

Hello

Please help. As you can see the attached image in the post options "search on Areavis" and "search on Google." I would like to do radio buttons but unfortunately I do not know how. Please help if anyone knows how to do radio buttons in html?

 

 

Best Regards,

Lucas

button.jpg · 5.8K · 169 views
Quote · 11 Jan 2012

I'm trying to add a set of two radio buttons to a form and based on what I'm finding in the code, "radio_set" is not fully implemented in D7... though I see it will be added to D8.  Has anyone been able to add radio buttons to a form using the Dolphin form code?

http://pkforum.dolphinhelp.com
Quote · 1 Aug 2012

you can try this on

<script type="text/javascript">

  function doSubmit(form) {
    var urls = form['url'];
    var i = urls && urls.length;
    while (i--) {
      if (urls[i].checked) {
        window.location = urls[i].value;
      }
    }
    return false;
  }

  </script>
 
<div style="width:250px;">
<fieldset>
<legend><font color="#50A04B"> Search </font> </legend>
  <form action="" onsubmit="return doSubmit(this)">
    <input type="radio" name="url" value="http://www.google.com"> Google
    <input type="radio" name="url" value="http://www.areavis.com"> Areavis
    <input type="submit" value="Submit">
  </form>
</fieldset>
</div>

Quote · 1 Aug 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.