g_form.setReadOnly() not working in client script in application scope

MrunalD
Kilo Contributor

I have developed a onLoad client script in application scope. It was working fine when I run it in global , but in application scope following commands are not working: 
g_form.setReadOnly('owned_by', true);
g_form.setReadOnly('sys_user', true);

 

is there any way to replace g_form.setReadOnly method?

 

 

3 REPLIES 3

OlaN
Giga Sage
Giga Sage

Hi,

The setReadOnly method does also work in a scoped application, just as it would does in global, (Developer reference )

are you getting some error or something?

MrunalD
Kilo Contributor

not error, but I tested it in all way. I am calling script include in client script and script include is working fine but client script is not working there. I used this g_form.setReadOnly commands within function and called that in onLoad() within client script.

Please share your entire client script.