We have recently observed that that "Flag ArticlFlagging of a Knowledge Article is not functioning.

PRADEEPREDDY GU
Tera Expert


We have recently observed  that "Flag Article" button under Knowledge Portal view for any article is not functioning.

 

Can anyone help on this ,tq in advance

2 ACCEPTED SOLUTIONS

Akif_Shah
Kilo Sage
Kilo Sage

This might help. 
You are probably using a custom widget so you would have to update the modal.

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1163211

View solution in original post

You can go to this link and set your scope to "Knowledge Management - Service Portal"

https://<YOUR_INSTANCE_NAME>.service-now.com/sp_ng_template.do?sys_id=-1

On the widget field, set the value to your custom widget
Set ID = kb-flag-article-modal
Set Template to below or adjust depending on your customization

<div class="modal-content" role="dialog" aria-labelledby="flagTitle" aria-modal="true">
  <div class="modal-header">
    <h4 id="flagTitle" class="modal-title">{{::data.messages.FLAG_THIS_ARTICLE}}</h4>
    <button id="flagCloseButton" type="button" class="close" data-dismiss="modal" ng-click="c.clearComment($event)" aria-label="{{data.messages.CLOSE}}" autofocus><i class="fa fa-times" aria-hidden="true"></i></button>
  </div>
  <div class="modal-body">
    <textarea aria-invalid="false" aria-required="true" ng-required="true" aria-label="{{data.messages.ADD_COMMENT}}" placeholder="{{data.messages.ADD_COMMENT}}" ng-model="::data.comment" class="form-control resize-vertical" rows="5" id="flagComment"></textarea>
    <div role="alert" aria-live="assertive" class="alert-danger" ng-shown="!c.flagMessage">{{c.flagMessage}}</div>
  </div>
  <div class="modal-footer">
    <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="c.clearComment($event)">{{data.messages.CANCEL}}</button>
    <button type="button" class="btn btn-primary" id="submitFlagComment" data-dismiss="modal" ng-click="c.submitFlagComments();">{{data.messages.SUBMIT}}</button>
  </div>
</div>

View solution in original post

7 REPLIES 7

Hi Akif,

 

as per your request i added  but still same error showing.plz help me on this

How to add in custom widget

Alekhya Nagabh1
Tera Contributor

Hi Akif,

 

Even we have this issue, We have followed your steps but issue was not resolved. 

 

Thanks,

Alekhya N