Add url link on a label field in the service catalogue

rody-bjerke
Giga Guru

Hi,

I'm trying to do add a URL to a website on a label field in a variabel set on a requested item (service catalogue), but i can't seem to make it show in the service portal.

Type is Label, and i've added a question and a name, then you have the html fields: description and instructions fields. I want the label to show html like URL when in the service portal, i think i'm overlooking something, is this possible?

Best regards,

6 REPLIES 6

prashantnagaral
Kilo Guru

Hi Rody,



I suggest you to create a variable with "Macro with label".



Create a macro with label and html url and map to above variable.



Thanks


Prashant


In Service portal Macros will not work. So you have to link the macro to a widget as shown below


find_real_file.png



You need to create a widget in Service Portal



and in the HTML field use anchor tags as shown in below



.<div>
<!-- your widget template -->

<font>Fill this section out completely. Please see</font>


<a href="http://FinancePolicy/Published_Manuals/AccountsPayable.pdf" target="_blank"><font color="Blue"><u>Accounts Policy</u></font></a><font> for help.</font>


</div>


amlanpal
Kilo Sage

Hi Rody,



You can pass the link inside the help text if you want. For this you need to pass the required link using 'a' tag, like <a href= 'www.google.com'> Click Here </a>. But for this you need to change the system property (change it to false) 'glide.ui.escape_text' for this.


Note: Please do remember that it will change globally.



I hope this helps.Please mark correct/helpful based on impact



I came across this issue and had modified the system property to false. However If I try to access the catalog items or try to configure the item, I see an error on top 'The entity name must immediately follow the '&' in the entity reference.' which was actually due to changing the escape_text property. Once I set it back to true, the error disappeared.

Is there any alternate way to parse html into Help text fields?

Regards!