Hiding submit button

socoweb

New Member
I need to make a conditional hide or disable of the submit button. I have looked at many threads such as http://fabrikar.com/forums/index.ph...-submit-button-with-javascript-and-css.24349/ and http://fabrikar.com/forums/index.ph...ly-disable-the-submit-button-in-a-form.25234/ among a host of others. I have added the JS in form_1.js but it doesn't get called. For some reason I can not get the submit button to disable or hide until a radio button is checked to yes. Does anyone have any ideas how to do this? I have the latest github install and joomla 3.1

Thanks

Matt
 
OK. I have tried adding:
document.getElement('.fabrikActions').show()

document.getElement('.fabrikActions').hide()

in the javascript field on Load, on click and that does not seem to work.

I have tried
var buttnhide = this.getValue();
if (buttnhide==='') {
getButton('submit').disabled=true;
}

along with many other attempts using form_1.js files and more in the element JS. None of which work.


Nothing that I try seems to affect the Submit button at all. Is there any way to get the submit button in a form to disable or hide via javascript unless a checkbox is checked in Fabrik 3.1?
 
I should also mention that I have tried to debug in Firebug. However it keeos saying that

form_1._getButton('Submit')

is not a function. I can form_1.hide and so on. but nothing concerning the submit button.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top