[SOLVED] JS | detail form | get value from repeated group

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 :

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
 
But details views don't have submit buttons?

-- hugh

Hi Hugh, of course, sorry I have made a mistake, you right it is in form view of course :

js file name : form_20.js

Code:
window.addEvent('domready', function() {

value =form_20.formElements.get('fab_inscriptioneve_repeat_membre___enrollment___enrollment').getValue().toInt();
   if (value === 1) {
      form_20._getButton('submit').hide();
}
});

Doesn't work either.

Would appreciate your support, thanks in advance, cheers, marc
 
Last edited:
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top