What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    How to update DOB widget from Radio button?

    Asked by tsfermanagh on September 10, 2014 at 10:48 AM

    Hi I was just wondering I have radio buttons with a set number of years, is it possible to select one and that value be put into the value for year in the DOB widget?

     

    Thanks

    Page URL:
    http://form.jotformpro.com/form/42522755837966?

    Screenshot
    radio buttons select thanks and
  • Profile Image

    Answered by jedcadorna on September 10, 2014 at 12:04 PM

    This is possible, but you have to download the form source and add some custom script. We can create a sample for if you want, just let us know.

  • Profile Image

    Answered by tsfermanagh on September 11, 2014 at 03:59 AM

    Please that would be great jedcadorna. Would it be using JS?

  • Profile Image

    Answered by jedcadorna on September 11, 2014 at 04:48 AM

    I have cloned your form and made a sample. Can you please check it on this link.

    Sample image:

     

  • Profile Image

    Answered by tsfermanagh on September 11, 2014 at 06:26 AM

    Thanks so much, How would I implement the script into my own form and use it.

     

    Thanks

     

    Rueben

  • Profile Image

    Answered by jedcadorna on September 11, 2014 at 07:50 AM

    Hi Rueben,

    The example I've made needs a form source so in order for you to get this to work you have to download your form source.

    Once you have your form source you'll need to paste this code before the </body> tag ends.

    Then add this line onclick="myFunction()" in your radio buttons input tag.

    That's it. That should capture your radio button value whenever it's checked.