Custom widget functionality not working

im doing some enabling and disabling of text field on page load and it is working good in my system but if i try in other system it is not working properly.

Hi Vishal,

could you please give more details on your use case?
Which version of Bonita are you using? on which stack?

Thanks.
Delphine