Radiobutton issue

deant

Active Member
Hi,

Im using JS to copy values from radiobutton_1 in form_1 to radiobutton_2 on form in modal window. Web console show error: TypeError: label.getParent(...) is null - file radiobutton.js:89.

Is this a bug or Im doing something wrong?

Here is code to update value in radiobutton_2:

JavaScript:
var radiobutton_1 = el.form.formElements.get('tablename_1___radiobutton_1').getValue();

Fabrik.getBlock('form_xx).formElements.get('tablename_2___radiobutton_2').update(radiobutton_1);

All ideas are wellcome.
 
Well, there's a typo in that code, a missing quote on the getBlock('form_xx), but I suspect you introduced that when change your form ID for posting.

A shorthand way of doing that would be :

Code:
el.form.formElements.get('tablename_1___radiobutton_2').update(
   el.form.formElements.get('tablename_1___radiobutton_1').getValue()
);

But that probably won't fix the problem.

Are these set to be button groups? That error means we think it's a button group (it has a label)

Can you point me at the page?

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top