Agent Workspace: how to block off certain fields from being edited

tahnalos
Kilo Sage

Getting used to the HRSD Agent Workspace functionality but one thing I want to know: how to block off certain fields so that they are not edited?

 

We have been able to set up certain fields to autopopulate as they are dotwalked from a parent reference field. This is for display only, so we do not want to have these fields modified.  Are there any tips on how we can prevent an HR agent from modifying these fields?

 

Thanks

3 REPLIES 3

Matthew_13
Mega Sage

Sure @tahnalos 

Here's a way to make fields read-only in HRSD Agent Workspace:

  1. Form Designer: Open the form, find the field, and set it to Read-Only.

  2. UI Policy: Create a UI Policy for the table/form and mark the field Read-Only always or conditionally.

  3. Client Script: Use an onLoad script:

g_form.setReadOnly('field_name', true);
  1. ACLs: Set a field-level ACL right; so agents can only read, not write.

Remember: For dot-walked fields in Workspace widgets, UI Policies or ACLs are usually the safest.

Thanks my Friend!

@tahnalos - Please mark Accepted Solution and Thumbs up if you found Helpful!!

The problem is that UI policies and Client Scripts do not work in the Agent Workspace.  We have confirmed this to be the case.  Is there another method?

Ankur Bawiskar
Tera Patron

@tahnalos 

1st option -> don't add them to the list in workspace as they are dot walked

2nd option -> make them read-only at dictionary level as they will be always auto-populated as they are dot walked fields

check below link

https://www.servicenow.com/community/servicenow-ai-platform-forum/how-to-enable-inline-editing-for-t...

💡 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