The CreatorCon Call for Content is officially open! Get started here.

Adding link in catalog client script - showFieldMsg

SNOW User8
Giga Guru

Hi All,

How o add links in a showFieldMsg especially in Catalog Client Script?

 

Please help me.

 

Thanks in advance,

SNOW

9 REPLIES 9

Hyperlinks are not supported in   gs.showFieldMsg method.

you can use code i provided earlier with info message method.

 

Regards,

Sachin

Hi

Thanks 

There is any official documentation for this "Hyperlinks are not supported in   gs.showFieldMsg method."

Can confirm, the above solution by Sachin works and hyperlinks are supported via;

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

Dhyanendra
Tera Contributor

g_form.showFieldMsg does not support hyperlink option.

ajayr
Giga Expert

Hello SNOW,

 

I think you can do it via putting in System UI -> Messages

As messages accept the HTML tags

and can refer via message key in client script as below: 

 

getMessage('<message_key>', function(msg) {
g_form.showFieldMsg("<field_name>", msg, 'info', false);
});

 

Please mark correct if this helps

 

Thanks,

Ajay Raina