i try to add a checkbox with four variables
i the user choose "Andere" a small textbox has to be open to enter....a word....
but it doesn't work😟
I use the code from http://www.chronoengine.com/faqs/58-cfv4/cfv4-elements-and-html/2657-how-can-i-build-a-combo-box-input.html
added a checkbox in my form and entered the displayed options into Extraparams...
but it doesn't work. Output looks like :
[attachment=0]Checkbox.jpg[/attachment]
i the user choose "Andere" a small textbox has to be open to enter....a word....
but it doesn't work😟
I use the code from http://www.chronoengine.com/faqs/58-cfv4/cfv4-elements-and-html/2657-how-can-i-build-a-combo-box-input.html
added a checkbox in my form and entered the displayed options into Extraparams...
but it doesn't work. Output looks like :
[attachment=0]Checkbox.jpg[/attachment]
Hi zaplcgn,
What do you have in the Options box and the Extra Params box exactly?
Bob
What do you have in the Options box and the Extra Params box exactly?
Bob
Options:
ExtraPrms
Hauptschule=Hauptschule
Realschule=Realschule
Gesamtschule=Gesamtschule
Other=Other
ExtraPrms
window.addEvent('domready', function() {
var select, other;
select = $('choose_one_container_div');
other = $('choose_one_other');
switchOther();
select.addEvent('change', switchOther);
function switchOther() {
var checked = $$('input[value=Other]:checked');
if ( checked.length > 0 ) {
other.disabled = false;
} else {
other.value = '';
other.disabled = true;
}
}
});
Hi zaplcgn,
a. The Extra Parameters box is for attributes to be added to the input element e.g. readonly=readonly. It is not intended to take chunks of JavaScript - please use the Load JavaScript action for that.
b. The JavaScript you are using here is using MooTools syntax which will work OK with CFv4 on Joomla! 1.5 but may not be loaded with CFv5 and Joomla! 3 as Joomla! have switched to use the jQuery library as standard. ChronoForms v5 has a built-in event manager that you can use to show/hide elements or containers. I suggest that you use that instead of custom script.
Bob
a. The Extra Parameters box is for attributes to be added to the input element e.g. readonly=readonly. It is not intended to take chunks of JavaScript - please use the Load JavaScript action for that.
b. The JavaScript you are using here is using MooTools syntax which will work OK with CFv4 on Joomla! 1.5 but may not be loaded with CFv5 and Joomla! 3 as Joomla! have switched to use the jQuery library as standard. ChronoForms v5 has a built-in event manager that you can use to show/hide elements or containers. I suggest that you use that instead of custom script.
Bob
This topic is locked and no more replies can be posted.