Forum Discussion

Shekhar's avatar
Shekhar
Ideator I
6 years ago
Solved

Disabling a field of type Text Area

Hello Experts, I need to disable a field of type Text Area. I am using the below code on form populate event var input1 = getFieldByName("Test_Text_Area"); setTimeout(function() { input1 .getE...
  • AngelaIp's avatar
    6 years ago

    Hi Shekhar,

    getElementsByTagName("input") only works for regular fields.

    Try getElementsByTagName('textarea'). I am not sure if this will work together with getFieldByName. Maybe you can also directly call your textarea:

     var input1 = document.getElementsByTagName('textarea')[0];

    Haven´t tested the samples, but I hope one of them works.

    Ciao,

    Angela