leblancphil
Member
Hi
I followed forum exemple to try to hide submit button of my form 204 when the radiobutton admin3_historique___etat' value is 1
I have put this in form_204.js
and showHideSave() in javascript onload of "admin3_historique___etat"
the javascript console says about .get('admin3_historique___etat').getValue(); Cannot read property 'get' of undefined
Thanks for your attention
I followed forum exemple to try to hide submit button of my form 204 when the radiobutton admin3_historique___etat' value is 1
I have put this in form_204.js
Code:
function showHideSave() {
var value = form_204.formElements.get('admin3_historique___etat').getValue();
if (value != 1) {
form_204.getElements('input[name=submit]')[0].show();
}
else if (value == 1) {
form_204.getElements('input[name=submit]')[0].hide();
}
}
the javascript console says about .get('admin3_historique___etat').getValue(); Cannot read property 'get' of undefined
Thanks for your attention