marcq
Member
Hi,
I'm would like to hide the submit button in my detail form if the value of fab_inscriptioneve_repeat_membre___enrollment is equal to 1.
form | detail id is 20.
I have created a js file in components/com_fabrik/js : details_20.js.
I tried this :
but it doesn't work.
Would appreciate your support.
Thanks in advance, cheers, marc
I'm would like to hide the submit button in my detail form if the value of fab_inscriptioneve_repeat_membre___enrollment is equal to 1.
form | detail id is 20.
I have created a js file in components/com_fabrik/js : details_20.js.
I tried this :
Code:
window.addEvent('domready', function() {
value =details_20.formElements.get('fab_inscriptioneve_repeat_membre___enrollment').getValue().toInt();
if (value === 1) {
details_20._getButton('submit').hide();
}
});
but it doesn't work.
Would appreciate your support.
Thanks in advance, cheers, marc