Make variables on the target record read-only in workspace

Akshaya Shetty2
Kilo Contributor

Hi All,

We have a requirement to make the default variable editor read-only in the target record. We have written script as per https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0752560 which makes the variable editor read-only in native UI. However, variables are still editable from the workspace.  We have tried a client script with g_form.setVariablesReadOnly(true) on target record but its not working either. Any idea on how we can make the variables read-only on the target record in workspace?

5 REPLIES 5

Hello @e_disanto ,

 

I have implemented this onload client script for particular table. But this is only working in classic UI/ backend view of records where the variables are read only.
Although I also need to implement this workspace. In my workspace also the variables are read only. Please suggest how to resolve this.

 

Kind Regards,

Atanu Maity