Hello,
I've read a lot of posts about this request, but i can't find the proper javascript to hide the submit button on Edit when the textarea element is not empty.
I tried this code in form_232.js but i can't make it work so i need some help:
Thank you
I've read a lot of posts about this request, but i can't find the proper javascript to hide the submit button on Edit when the textarea element is not empty.
I tried this code in form_232.js but i can't make it work so i need some help:
Code:
window.addEvent('domready', function() {
value = form_232.formElements.get('cm_tickets___request').getValue().toInt();
user = form_232.formElements.get('cm_tickets___added_by').getValue().toInt();
if (value > 0 && user != 256) {
form_232._getButton('submit').hide();
}
});
Thank you