Hide/Show Group not working

progman

New Member
Hello!

I can hide and show elements, but the same feature is not working with groups.

I am using the "JavaScript" tab.

This is working (hide/show element):

Fabrik.blocks['form_1'].addElementFX('element_tablesisprev01___CPF01', 'show');
Fabrik.blocks['form_1'].dispatchEvent('dropdown', 'tablesisprev01___QueTipodeTrabalhador00', 'change', 'if (this.get(\'value\') == \'2\') {Fabrik.blocks['form_1'].doElementFX(\'fabrik_trigger_element_tablesisprev01___CPF01\', \'show\')}');
Fabrik.blocks['form_1'].dispatchEvent('dropdown', 'tablesisprev01___QueTipodeTrabalhador00', 'change', 'if (this.get(\'value\') == \'0\') {Fabrik.blocks['form_1'].doElementFX(\'fabrik_trigger_element_tablesisprev01___CPF01\', \'hide\')}');

This isn?t working (hide/show group):

Fabrik.blocks['form_1'].addElementFX('fabrik_trigger_group_group15', 'hide');
Fabrik.blocks['form_1'].dispatchEvent('dropdown', 'tablesisprev01___QueTipodeTrabalhador00', 'change', 'if (this.get(\'value\') == \'0\') {Fabrik.blocks['form_1'].doElementFX(\'fabrik_trigger_group_group15\', \'hide\')}');
Fabrik.blocks['form_1'].dispatchEvent('dropdown', 'tablesisprev01___QueTipodeTrabalhador00', 'change', 'if (this.get(\'value\') == \'2\') {Fabrik.blocks['form_1'].doElementFX(\'fabrik_trigger_group_group15\', \'show\')}');

Group id: 15
Group Name: sisprev01

What?s wrong?

Thanks
 
can you post a url to the page please? Its always easier to advise on js issues when we can debug the page in question

thx
Rob
 
Back
Top