Hi guys
I tried to search this forum with no luck. I think Chronoforms support this, but I can't find.
My idea is to have a dropdown box for 2 OS : XP and Win 7, and below is some radio buttons for OS version. If you choose Win 7, all buttons are available, but if you choose XP, some radio buttons turn to gray.
How can I do that?
Thanks for reading
I tried to search this forum with no luck. I think Chronoforms support this, but I can't find.
My idea is to have a dropdown box for 2 OS : XP and Win 7, and below is some radio buttons for OS version. If you choose Win 7, all buttons are available, but if you choose XP, some radio buttons turn to gray.
How can I do that?
Thanks for reading
Hi nuphero ,
Use JavaScript to set the disabled attribute for the buttons.
Bob
Use JavaScript to set the disabled attribute for the buttons.
Bob
Thanks for answering my question, I'm trying to do some thing similar
I use 1 Calendar and some radio buttons below, and i get calendar value using :
But it doesn't work. Please help me, I added onClick="gray();" in Calendar code.
I use 1 Calendar and some radio buttons below, and i get calendar value using :
function gray() {
var date = $('date_1');
if (date.value = "24/12/2010") {
for (var i=0; i<document.elements.length; i++) {
if (document.elements[i].name == "radio0") {
document.elements[i].disabled = true;
}
}
}
}
But it doesn't work. Please help me, I added onClick="gray();" in Calendar code.
Hi Nuphero,
Here's how I'd normally write that in the Form JavaScript Box:
But with a datepicker the the 'change' event isn't triggered when the data changes :-( so for this you have to use one of the functions of the datepicker itself. These are
Bob
Here's how I'd normally write that in the Form JavaScript Box:
window.addEvent('domready' function() {
$('date_1').addEvent('change', function(){
$$('input[name=radio0]').each(function(radio) {
radio.disabled = true;
});
});
});
Not tested and may well need debugging!But with a datepicker the the 'change' event isn't triggered when the data changes :-( so for this you have to use one of the functions of the datepicker itself. These are
onHideStart, onHideComplete, onShowStart, onShowComplete - Event handlers that can be used to trigger your own scripts.
See the docs here for more info.Bob
This topic is locked and no more replies can be posted.