Infomessages on portal

Jan Brani_
Tera Expert

Where I can configure infomessage on portal, for example when new HR case is created, there are two infomessages, I need to change them little bit (trim surname and change link) but I have no idea where I could find them.

find_real_file.png

1 ACCEPTED SOLUTION

Paul Wydra III
Tera Expert

Hi Jan,



You can edit the "Created..." message by editing a Widget. The Widget you are seeking is called SC Catalog Item (widget-sc-cat-item). Clone that widget to begin making your changes.



The logic for generating the messages exists in the Client Script.



Edit the function at the bottom of the Client Script, called issueMessage(). This is what is called after the form has been submitted, and the order has been processed.


function issueMessage(n, table, sys_id) {


  var page = table == 'sc_request' ? 'sc_request' : 'ticket';


  var t = "${Created} " + n + " - ";


  t += "${track using 'Requests' in the header or}";


  t += ' <a href="?id=' + page + '&table=' + table + '&sys_id=' + sys_id + '">' + "${click here to view}" + '</a>';


  spUtil.addInfoMessage(t);


}


Once you have made the changes, simply replace the OOB Widget Instance that appears on the page "sc_cat_item", with your newly cloned one.



If you want to see where issueMessage() gets called, take a peek at the getOne() function for its use.



I am unsure where the "assigned to" message gets called from, but it is not in the Widget from what I can tell.




Thanks.


View solution in original post

17 REPLIES 17

Hi Matt,



Ive followed the instructions and understand how to change the messages displayed etc.



My question is this...



I have built a new page which houses our "Get Help" form on (screenshot below)


Get Help Form.png


The form sits on a newly created page called "get_help", and created a new widget based on "sc_cat_item", purely so that it can be individualy customised with the Get Help advice and related articles widgets on the side.



When i submit the incident, the green text comes up...but how do i link the onsubmit to the cloned widget mentioned in the posts above?



Confirmation message.png



Thanks,



Ed


Hi Ed,



I am not sure what you mean by "how do i link the onsubmit to the cloned widget mentioned in the posts above?"



Can you expand on that? Thanks.


This is a little late, but...


Open the page in the Service Portal Designer, and drag the new widget into a module.


find_real_file.png



It will not appear with text, but when you navigate to the page on the backend, the widget will show inside the column.



find_real_file.png


Click on the Column that contains the old and new widgets and set the old widget to false or delete it from that area.



find_real_file.png