How to add a link(url) by using g_form.showFieldMessage()?

Bharath kumar6
Tera Expert

I need a link to be displayed if a user select "No" from Yes/No field.

How do I achieve this?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

g_form.showFieldMessage() -> doesn't support showing links

you can use info message to show the link

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

9 REPLIES 9

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

g_form.showFieldMessage() -> doesn't support showing links

you can use info message to show the link

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi @Ankur Bawiskar ,

Is it not possible at all to show links below fields.

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

As Ankur suggested, field message doesn't support hyperlinks, however, you can use a form info message if that works.

EG Below:

g_form.addInfoMessage("Please <a href = '/incident_list.do'>Click</a>");

 

-Anurag

-Anurag

This method I know.

But is it possible to do it, may be by using "alert" or ....