Adding the Flag Article button in portal side
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2020 04:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2020 05:39 AM
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
Mohit Kaushik
ServiceNow MVP (2023-2025)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2020 06:58 AM
what can i add in html and css, client script after clone.
can you please help me with the code Mohit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2020 10:49 PM
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
Mohit Kaushik
ServiceNow MVP (2023-2025)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2020 10:48 PM
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
Mohit Kaushik
ServiceNow MVP (2023-2025)