sachin_namjoshi
Mega Patron

 

Use below code

 

g_form.showFieldMsg('center_access','Please go to + <a href = 'https://www.google.com'>Click</a> + and my random text', 'error');

Regards,

Sachin

Hello Sachin

 

it didnt work 

Sorry, Hyperlinks are not supported in   gs.showFieldMsg method.

please use below code

 

function onLoad() {


 


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


 


   


 


}

 

Regards,

Sachin

View solution in original post

Hello Sachin , its working fine but not a feasible solution for this issue . the info message is not visible as it is displaying on the top , Mine is a long form where your may not notice that , can we include that in alert?

 

 

You can't add hyperlink in alert() method.

But, you can use below DOM manipulation in your client script with CAUTION to achieve your requirement

 

	$('element.incident.urgency').insert({
		after: '<tr class="info_message_row"><td colspan="2"><div class="outputmsg_info"><img src="images/outputmsg_success.gifx" alt="Please fill up"><a href="http://www.google.com">Google</a></div></td></tr>'
	});

 

Note : DOM manipulation is not recommended since it may break during future upgrade.

Regards,

Sachin