TonyBenedetti
Hobbyist Programmer & Fabrik Fan
I have the following code in both the "on load" and "on click" events of a radio button group. The value and label are identical for each button (e.g., "Month", "Quarter", etc.) -- adding "_raw" doesn't make any difference.
The element whose label I am trying to change is a CascadingDropDown. The CDD itself is also based on the button group and that is working fine, but the label simply refuses to change.
It has to be a RDB ("Real Dumb Blunder") on my part but I'll be darned if I can find it. Does anyone out there have any idea what's going wrong?
The element whose label I am trying to change is a CascadingDropDown. The CDD itself is also based on the button group and that is working fine, but the label simply refuses to change.
It has to be a RDB ("Real Dumb Blunder") on my part but I'll be darned if I can find it. Does anyone out there have any idea what's going wrong?
JavaScript:
var form = Fabrik.getBlock('form_23');
var table = 'gn_event___';
var types = table + 'end_division_of_year_types';
var choices = table + 'end_division_of_year_choices';
var chosen = form.elements.get(types).getValue();
form.elements.get(choices).setLabel(chosen);