How can I include a clickable URL in field message?

samadam
Kilo Sage

I am trying to embed a URL in the field message, How can I use html in field message, Is this possible?

6 REPLIES 6

SanjivMeher
Kilo Patron
Kilo Patron

You can open the label of the field and use the URL field to enter your URL, which will appear as a link

 

find_real_file.png


Please mark this response as correct or helpful if it assisted you with your question.

samadam
Kilo Sage

Thank you, missed to mention that this a variable on service catalog, which is a multiple choice field and I want to display the URL when one of the option is selected.

You can try using an onChange Client script. for ex

 

var link = '<a href="https://www.servicenow.com">Link</a>';
var message = "<p>Testing "+link+" has been created!</p>";
g_form.showFieldMessage('<field name>',message,'info');

Please mark this response as correct or helpful if it assisted you with your question.

samadam
Kilo Sage

I tried it but the html is not resolving. I just see the string value in the message including the html tags.