Forum Discussion
Gopikrishnan
6 years agoIdeator I
Hi David
You can try something like below
var columnsName = ["part", "part_number","quantity"];
var setFieldDisabled = function(fieldName)
{
for (i = 0; i < fieldName.length; i++)
{
var input = getFieldByName(fieldName);
input.getElementsByTagName("input")[0].disabled = true;
}
};
setFieldDisabled(columnsName);
return this;
I'm not sure what version of ARAS you are using but below lines does not work for my version.
var input = getFieldByName(fieldName);
input.getElementsByTagName("input")[0].disabled = true;
So I replaced this two lines with below line and it works.
document.forms.MainDataForm.elements[fieldName].disabled = true;
Thank You
Gopikrishnan R
- Dave2596 years agoIdeator I
Hi Gopikrishnan,
your code worked perfectly.
Thank you for your help, I appreciate that.
David
- Gopikrishnan6 years agoIdeator I
Glad to help [emoticon:c4563cd7d5574777a71c318021cbbcc8]
Thanks
Gopikrishnan R
- sgopinath2 years agoIdeator I
Hi Gopikrishnan,
Is there a way to disable the entire form with all the fields without having to disable individual fields on the form?
Any input is appreciated.
Sunil