How to auto check radio button after check field from dropdown

Qbik 03 Apr, 2014
how to mark radio button in depends of choosen year for example when I choose from dropbox "Rok Urodzenia" 1998 and 1999 it should mark field U15 in "Kategoria" and for 2000 and 2001 U13 any solution for that??

I set this radio button as disable but i want to mark it by auto after choosen right year

form is here
GreyHead 03 Apr, 2014
Hi Qbik,

You'd have to write a little Custom JavaScript to do that.

Bob
Qbik 03 Apr, 2014
ok thx I'm not so good in JS can You help me with that or show some similar code do that?
Max_admin 03 Apr, 2014
Hi Qbik,

Here is a code example which can be added to a "Load Javascript" action:

jQuery(document).ready(function($){
	$("#my_dropdown_id").on("change", function(){
		if($(this).val() == "1"){
			$("#my_radio_id").prop("checked", true);
		}
	});
});
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Qbik 03 Apr, 2014
ok thx
and where i have to put this on load events? or i have to prepare some new events?
Max_admin 03 Apr, 2014
Yes, this will go in the "on load" event, but the code need to be updated, the fields ids and the value you are checking for..etc, that's just a plain example!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.