Changing label for a field on workspace

samadam
Kilo Sage

I want to change the label of field displayed on Workspace. I want Opened for field to have a different label just on the workspace. Is this possible?

2 REPLIES 2

AnveshKumar M
Tera Sage
Tera Sage

Hi @samadam ,

You can change the label using a client script for a specific view. Try using the following onLoad client script.

 

function onLoad() {  

    //Type appropriate comment here, and begin script below  

    var view = getView();  

  if (view == 'workspace){//your view name to change the label

  g_form.setLabelOf('opened_for', 'Your Label');  

  }  

}  

 

Thanks,

Anvesh

Thanks,
Anvesh

Devanshi Tiwar1
Tera Contributor

I have the same requirement and tried this code, but this code works only for the view in classic UI. Workspace still shows the old name. any suggestion?