I had a request to change the Flag Article button to Report Article within knowledge Base articles, after reading around in the ServiceNow community, I located that this can be done by editing the UI Script — KBViewArticle, However with my JavaScri

clivebushell
Giga Contributor

I had a request to change the Flag Article button to Report
Article within knowledge Base articles, after reading around in the ServiceNow
community, I located that this can be done by editing the UI Script —
KBViewArticle

However with my JavaScript skills being zero the code now
seems to have a problem, causing the top four icons to no longer work on
knowledge base articles, please could you take a look and offer any help?

Many thanks

1 ACCEPTED SOLUTION

Thank you. The easiest way is to update the corresponding entry in the System UI> Messages table. Use the following URL to change the Message (not the key) field. Substitute YOURINSTANCE for your instance name.



https://YOURINSTANCE.service-now.com/nav_to.do?uri=sys_ui_message.do?sys_id=5a3e83f0ff201000dada1c57...


find_real_file.png


View solution in original post

29 REPLIES 29

Specifically, what is that script you are showing? Is it a UI macro? A UI script? I can get you a fresh OOB replacement if you modified something. You might also be able to go to the Versions related list and revert to an early version before you made the modifications.



Let me know which option you prefer.


clivebushell
Giga Contributor

Hi Chuck,



Versions related list to revert back sounds great, how do I do that?



Its the UI script: KBViewArticle I changed



Just changed the message table and that's worked a treat to rename it



Many thanks



Clive


Sorry, I just checked. Those records aren't saved under Versions.



I have attached the original. Save it to your hard drive. Go to any list, click the menu and select Import XML, select the file you saved, and upload it. Your UI script will be restored.


clivebushell
Giga Contributor

Hi Chuck,



OK being really stupid now, where do I click to import?



find_real_file.png



Kind regards



Clive


On a list. Right click the list heading and select Import XML.



find_real_file.png