Service Portal: Add info message

gomathyshankar
Tera Contributor

Hi,

Whenever user submits the incident (something is broken)we get the below mentioned info message in the incident page.The same incident when we submit in portal it showing same message.We want to override this message as want to redirect to other page   in service portal .Could some please help me here.

incident.png

14 REPLIES 14

Hi Sarfaz,


I am not sure what   are asking but I am using the OOB icon link widget and I have configured the in the screen shot mentioned below.From this widget it is going to the sc_cat_item page   which has   OOB sc catalog item widget



find_real_file.png


Oh...... the problem is i used my own customized portal where i have no OOB Codes and all is customized... AND earlier i mentioned this will be easy if you are using customized pages not OOB, as it is never advised to change OOB page.   So this now becomes a little twisted task... can you get me the XML/jelly code of sc_cat_item...


Hi Sarfraz,



Please find the XML of sc_cat_item widget


Hi Sarfraz,



Please find the XML of sc_cat_item widget


ok ... i am not sure about this but you can give it a try in your personal dev first...



1) create   a duplicate of sc_cat_item and name it sc_cat_item_1 //we will not change anything in OOB page...hence assign the new created page to the page in widget.



2)in XML of the sc_cat_item_1 add in <template> at last..:


<template>................


...


..


<script>


var msg= document.getElementById('id_of_the message'); //to get it press f12 and from DOM inspector find the id of the box

msg.innerHTML = 'your custom message';


</script>


</template>



note: this is untested code .. please first use in your personal instance and then proceed further.


Hi sarfraz



I am unable to find the id of the box..


PFB the image



message1.png