Adding the Flag Article button in portal side

lakng
Tera Contributor

we have a Flag Article option for the knowledge Articles in native service now screen

but the flag Article, is not available in portal side.

find_real_file.png

find_real_file.png

4 REPLIES 4

Mohit Kaushik
Mega Sage
Mega Sage

Hi There,

That is because the widget which is displaying your KB article it is not having any button type field in it. Will suggest you can clone the OOB widget and then add the button field in your HTML part and then pass the actions in to your Client script and Server script of widget.

 

Please mark this answer correct if it resolved the query and mark it helpful too if it helped you at all

 

Thanks,

Mohit

Thanks,
Mohit Kaushik
ServiceNow MVP (2023-2025)

what can i add in html and css, client script after clone.

can you please help me with the code Mohit.

Hi,

You can follow the below link it shows how to create a button widget in portal and once you done with the code then simply add it to your KB article page in portal.

https://serviceportal.io/create-custom-action-buttons-service-portal/

https://snprotips.com/blog/2018/3/15/service-catalog-try-in-portal-button

You need to change the lines of code as per your requirement.

 

Please mark this answer correct if it resolved the query and mark it helpful too if it helped you at all.

 

Thanks,

Mohit Kaushik

Thanks,
Mohit Kaushik
ServiceNow MVP (2023-2025)

Mohit Kaushik
Mega Sage
Mega Sage

Hi,

You can follow the below link it shows how to create a button widget in portal and once you done with the code then simply add it to your KB article page in portal.

https://serviceportal.io/create-custom-action-buttons-service-portal/

https://snprotips.com/blog/2018/3/15/service-catalog-try-in-portal-button

You need to change the lines of code as per your requirement.

 

Please mark this answer correct if it resolved the query and mark it helpful too if it helped you at all.

 

Thanks,

Mohit Kaushik

Thanks,
Mohit Kaushik
ServiceNow MVP (2023-2025)