How to add a hyperlink to a label on a catalog item form?

JennyHu
Tera Guru
Tera Guru

Hi community,

Is there way to add a hyperlink to a label field on a catalog item form?   Our use case is that we have a checkbox that asks if the user accepts the Terms & Conditions.   We would like to have Terms & Conditions hyperlinked.

I am currently using an onLoad catalog client script that references the $$ object and sets the innerHTML.   It works in our CMS portal.   We are migrating our portal from CMS to Service Portal.   In Service Portal, the following JavaScript error pops up:

"TypeError: $$ is not a function"

Any idea why?   We are running on Jarkata.

Thanks in advance,

Jenny

1 ACCEPTED SOLUTION

lSurya 24
Giga Guru

Hello Jenny,



Create a field type as a macro. And place a widget in that field which would have you link, say that < a href="www.community.com">link</a> in the widget which you are adding to the created field on the record producer. Now it will show as a link on service portal.



Note: widgets will not display on cms portal or instance. Test in service portal only.



find_real_file.png



to create a widget:


find_real_file.png


View solution in original post

7 REPLIES 7

lSurya 24
Giga Guru

Hello Jenny,



Create a field type as a macro. And place a widget in that field which would have you link, say that < a href="www.community.com">link</a> in the widget which you are adding to the created field on the record producer. Now it will show as a link on service portal.



Note: widgets will not display on cms portal or instance. Test in service portal only.



find_real_file.png



to create a widget:


find_real_file.png


Thanks Surya! That worked out great.


Glad that helped you


Excellent photoshop skills. Thanks!