How to Change Field Label for Reference Field???

G24
Kilo Sage

Hello smart folks.

We have a field on our Service Catalog Requested Item form that actually reflects a value in the Request table.  It looks like this:

1.png

 

If I go to Configure - Form Layout, the field looks as follows:

2.png

 

I would like for the Label of this field, on the form, to be simply "Requested for", to limit confusion for our users.  How can I achieve this?

 

Please Note, I am NOT able to change the value of the system property "glide.short.labels".  That property is "false" and it needs to stay that way because we have several list views with fields from multiple tables, and we need to see the table names in that context.  Is there another option?  Thanks!

1 ACCEPTED SOLUTION

G24
Kilo Sage

g_form.setLabelOf('request.requested_for', 'Requested for');

 

//This worked; with a DOT instead of an underscore, between "request" and "requested_for".  Thanks @Satyapriya 

View solution in original post

8 REPLIES 8

Hello, @Riya Verma I can't change that system-wide setting, because it will affect too many other things.

Satyapriya
Mega Sage

Hi @G24,

                   You can use onload client script like,

            g_form.setLabelOf('request_requested_for','New_Label');

G24
Kilo Sage

g_form.setLabelOf('request.requested_for', 'Requested for');

 

//This worked; with a DOT instead of an underscore, between "request" and "requested_for".  Thanks @Satyapriya 

Hi @G24 ,

I have provided you with screenshots that include backend names. There, you can see that I have configured it for "Requested For" using a client script. In your case, you need to update it with your dot walk field field g_form.setLabelOf('request.requested_for', 'Requested for');

 

Thanks,

Anand