Change color based on selection
-
Hi CFF-Team!
When loading the form, the first selection works. When I change the dropdown value (fieldname51), nothing happens anymore:
My cff-field (hidden aux):
(function(){
var selected = getField(fieldname51|n).val();
if (selected == 1) {
getField(fieldname21|n).jQueryRef().find('input').css('color', 'blue');
} else if (selected == 2) {
getField(fieldname30|n).jQueryRef().find('input').css('color', 'blue');
}
return '';
})()Do I need some kind of event listener?
Thank’s in advance!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Change color based on selection’ is closed to new replies.