Help in adding link in field message

Pihu1
Tera Contributor

Hi Community,

Need help in adding a link in field message ?when user clicks on it, it should point to new window.

Thanks,

Pihu

11 REPLIES 11

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

Right click on the field name and click on configure Label

find_real_file.png

 

-Anurag

-Anurag

Field messages don't support HTML, you can do it on form info message if that works for you

Something like

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

 

-Anurag

Jaspal Singh
Mega Patron
Mega Patron

Hi Pihu,

 

Something as below in business rule would do.

var link = '<a href="https://www.google.com">Link</a>';
var message = "<p>Click "+link+" here!</p>";
g_form.showFieldMessage('<field name>',message,'info');

Hi Jaspal,

Yes tried , but not working.

it's giving me output as below.

<p>Testing <a href="https://www.servicenow.com">Link</a> has been created!</p>