JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
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.
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?
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.
Please that would be great jedcadorna. Would it be using JS?
I have cloned your form and made a sample. Can you please check it on this link.
Thanks so much, How would I implement the script into my own form and use it.
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.