g_form.setReadOnly() not working in client script in application scope
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2023 11:08 PM
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2023 11:16 PM - edited 05-07-2023 11:17 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2023 01:32 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2023 01:36 AM
Please share your entire client script.