mmsa12
Member
Hi All,
I spend some time looking for this, so I though to post it here for anyone looking for it.
How to Hide/show elements based on value an element?
Select the javascript action "onLoad, onChange" you will have to add two javascript actually onload and onchange
I spend some time looking for this, so I though to post it here for anyone looking for it.
How to Hide/show elements based on value an element?
Select the javascript action "onLoad, onChange" you will have to add two javascript actually onload and onchange
Code:
var radioButton= document.getElementById('copy_paste_your_element_placeholder_for_radio_button').getValue();
var element1= Fabrik.getBlock('form_X').formElements.get('copy_paste_your_element_placeholder_for_element1');
if (radioButton=='1')
{
elemnt1.show();
}
else if (radioButton=='0')
{
element1.hide();
}