Disable more than one text field on the form

Hi Community,

I am using a code from the "Disable Form Fields"-blog (https://community.aras.com/b/english/posts/disable-form-fields/) in one of my methods. In the test phase I realized that the code for the text field only works on one field.

I tried to call all the required fields in the brackets, but it always used only one field:

var input = getFieldByName("part", "part_number", "quantity");
input.getElementsByTagName("input")[0].disabled = true;

How can I easily disable multiple fields at the same time on the form?

Thank you in advance for your help!

Best regards

David

Parents Reply Children
No Data