Make read-only variable in the Service Operations Workspace

Giuseppe4
Tera Contributor

Why are the item variables read-only on the Requested Item (RITM) form, while the same variables are editable within the ServiceNow Workspace? What technical or configuration factors cause this difference in behaviour between the two contexts?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Giuseppe4 

in native there must be some client script which is making those read-only.

That client script seems to be running only for Default view and not Workspace view.

Did you check that?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@Giuseppe4 

in native there must be some client script which is making those read-only.

That client script seems to be running only for Default view and not Workspace view.

Did you check that?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Bhimashankar H
Mega Sage

Hi, @Giuseppe4 ,

 

Check if there is any client script on that table and which are running on UI type as 'desktop'(except 'all') which runs only on native view not on workspace. When you set the UI type 'All' that will run on workspace too.

 

I hope you have observed on same record.

 

Thanks,
Bhimashankar H

 

-------------------------------------------------------------------------------------------------
If my response points you in the right directions, please consider marking it as 'Helpful' & 'Correct'. Thanks!

Hi @Giuseppe4 ,

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Helpful.

 

Thanks,
Bhimashankar H

PrashantLearnIT
Tera Sage

Hi @Giuseppe4 

 

Your script might be running only in Desktop View. You have to set your client scripts/ui policy to run in the workspace as well.

********************************************************************************************************
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.

********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect


Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************