Dynamic Field Label based on Current View in Workspace

User664605
Mega Guru

Hi Community Experts

We have a requirement where different views are being followed on a Table:
Form/List in both Native/ Workspace
Eg - Audit Engagement form will be holding View A/ View B/ etc. based on Groups on Audit Workspace

 

Here, the ask is to show the Field "Engagement Lead" as Audit Lead for View A and Inspection Lead for View B on Audit Workspace.

As per my knowledge, we are able to use getView() to control g_form.setLabel() in NATIVE UI. But have not been able to reach any conclusion in WORKSPACE.

Although we have Workspace View Rules to apply different UI Views for Workspace YET

"Is it possible to have extract the View applied and set Dynamic Labels based on the view applied on Workspace?"

Kindly share the possibilities for the above scenario.
Thanks in advance.

 

Best Regards,

Sameekshya

2 REPLIES 2

martinvirag
Mega Sage

Your option is the view rules as you rightly stated to enforce views to different personas. However, what is the business reason of having different field labels? Some requirements are perfectly fine of being pushed back 🙂 



Regards,
**Martin Virag**
ServiceNow Rising Star

Hi @martinvirag 
Thanks for your advice.

But would like to understand if there's a way to fetch the View name applied on a Form/List in Workspace ?
Thanks