Modify Field label on a form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2023 05:31 AM
Hello All,
We have a requirement in which we have to modify Field label on a form.
Field label=Please ensure that all collaterals/ artifacts (Brochures/ Flyers, White Papers, Blogs, etc.) are submitted and approved at Collabarative publication portal.we have to modify it in such a way that Collabarative publication portal becomes a hyperlink and user clicks on that they are redirect to some xyz page.
I tried to write a onload client script but it just paste the a tag along with the content.
var abc = g_form.getLabelOf("please_ensure_that_all_collaterals_artifacts_brochures_flyers_white_papers");
var modified = abc.replace('Collabarative publication portal', '<a href="https://xyz...">Collabarative publication portal</a>');
alert(modified);
g_form.setLabelOf("please_ensure_that_all_collaterals_artifacts_brochures_flyers_white_papers", modified);
Please can anyone help into this?
Thanks,
Nishant.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2023 06:17 AM - edited 06-21-2023 06:39 AM
Hello @Nishant Kharat1
If you are asking it for catalog item variable, I do not think it is possible to make variable name as hyperlink.
One solution would be to consider adding help text to the variable and there, you have HTML field in which you can add the hyperlink.
If it is for a table field, you can add link to the entire field label, not just for one or couple of words in the label. You can add link to the label by right click on field label in form view, configure label, and add link and update.
Thanks,
Ali
Thank you,
Ali

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2023 06:27 AM
Please go to the dictionary of the field.
In the Labels related list a column URL is available, in which you can add your URL. This should fulfill your requirement without the need of scripting.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2023 06:39 AM
Hi Peter,
Thanks for your response.
When i do this my entire field label becomes a hyperlink, i just some part of field label to be a hyperlink.
Eg; Hello how are you? So "are you " should be only the hyperlink and not the entire field label.
That's why i used onload client script but its not working.
Thanks,
Nishant.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2023 06:52 AM
I'm afraid it is not possible to do that with just a part of the label.
It's either this, a ui macro behind the field, which links to the page, or nothing at all.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.