How to Display add info message on catalog item.

shweta Kasbe
Kilo Contributor

Requirement is that on the based of category whenever the user selects A,B info message should display like this" Please click here to review a Knowledge article that may assist resolving your issue. (K1)". and also  user must be able to access hyperlink that is click.

find_real_file.png

1 ACCEPTED SOLUTION

Saurav11
Kilo Patron
Kilo Patron

hello,

Write a on change catalog client script on the catalog item for the field category:

Script:-

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
   if (isLoading || newValue === '') {
      return;
   }
	var cat=g_form.getValue('categoryvaribalename');
	if(cat=='valueofAchoice'||cat=='valueofBchoice')
		{
    g_form.addInfoMessage("Please <a href = 'Addyourlinkhere'>Click here</a>  to review a Knowledge article that may assist resolving your issue. (K1)");
		}

    


}

Please mark answer correct/helpful based on Impact

View solution in original post

4 REPLIES 4

Saurav11
Kilo Patron
Kilo Patron

hello,

Write a on change catalog client script on the catalog item for the field category:

Script:-

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
   if (isLoading || newValue === '') {
      return;
   }
	var cat=g_form.getValue('categoryvaribalename');
	if(cat=='valueofAchoice'||cat=='valueofBchoice')
		{
    g_form.addInfoMessage("Please <a href = 'Addyourlinkhere'>Click here</a>  to review a Knowledge article that may assist resolving your issue. (K1)");
		}

    


}

Please mark answer correct/helpful based on Impact

Hello,

If my answer helped you please mark it as correct as well.

Thanks..

target="_blank" doesnot work in catalog item

Thankyou so much!!