
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2022 04:31 AM
Hi Community,
I have the following use case: on the Risk form we displayed the field which brings the name of the project, as per the screen shot below. I would like to change the label of this field to Project Name but I get "invalid update" message - is it because Risk table is not an extension of Task, that's why it doesn't let me to do the change?
Is there a way to achieve this at all?
Thank you.
Paula
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2022 08:36 AM
I don't think you can do this as the field isn't extended to that form at the table level, it's effectively just being dot-walked to and displayed on your risk form.
You can use g_form.setLabelOf('<field_name>','<label>') to change labels via client script but i don't think you'll be able to do that here as the field isn't actually there.
If you really need to do this you could create a duplicate string field on the source task form and call it project name, populate it with whatever goes in the short description field with a simple business rule, hide it on your task form and dot-walk to that on your risk form.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2022 06:30 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2022 08:20 AM
Hi
As you can see in my initial post, I added on Risk form the short_description field belonging to Task in order to display the name of the project - this is the field I would like to change the label of, otherwise I have 2 short_description fields: one belonging to risk and one belonging to task which is listed on the Risk form and I'd like to differentiate these. If I change the label of short_description of Task it would change it across the platform which is something I do not want.
I think the issue resides with the element, hence the reason the system does not let me to put Risk as the table and short_description as the element; I tried to tweak the element to risk.task.short_description but it doesn't work either..

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2022 09:49 AM
Got it, it's not possible then, either you have to try for setLabelof function or better you create a string field and write onchange client script to populate project name in that, that would be simplest solution.
Link for SetLabelof solution :
https://community.servicenow.com/community?id=community_question&sys_id=8604fed91bf10410a59033f2cd4bcbc9
Regards
Regards,
Musab

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 09:52 AM
Hi Paula,
If all your queries are addressed feel free to mark my answer as correct and close the thread.
Regards
Regards,
Musab

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2022 08:36 AM
I don't think you can do this as the field isn't extended to that form at the table level, it's effectively just being dot-walked to and displayed on your risk form.
You can use g_form.setLabelOf('<field_name>','<label>') to change labels via client script but i don't think you'll be able to do that here as the field isn't actually there.
If you really need to do this you could create a duplicate string field on the source task form and call it project name, populate it with whatever goes in the short description field with a simple business rule, hide it on your task form and dot-walk to that on your risk form.