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

clivebushell
Giga Contributor

that's great its made the Create Incident and Edit buttons work, but the Flag/Report article button has now disappeared, how do I get that back?



find_real_file.png



Kind regards



Clive


Odd. Did you make any other changes other than that UI macro? The one I sent you hasn't been modified since January 2015.


Also, check the following properties:



glide.knowman.show_flag=true


glide.knowman.show_flag.roles=itil


clivebushell
Giga Contributor

Hi,



No I only made changes to the UI Script section, which is where I uploaded the file you sent me, should I also upload it to the UI Macro section as well?



When I look in UI script: KBViewArticle row 340 I no longer see the same text



Where are those properties kept?



Thank you for all your help so far, its been such an amazing help



Clive


Which UI macro are you referring to?



Properties can be accessed by going to sys_properties.list in the navigation filter. Search for the property name and verify it has the correct value. If it does not exist, create it.



find_real_file.png