How to add info message on the page which appears after clicking on 'Approval' under my Task

Damayanti Sarod
Tera Guru

I have a requirement, wherein I want to add a Info message named 'Please click the above link for additional details' , below the hyperlink of (RITM) ,as shown in the below SS.
How can this be achieved?
We have found one widget named 'To-dos task Line Item'.
Please suggest, where exactly are we supposed to do changes in this widget, or there is any other approach via which we can achieve the requirement

DamayantiSarod_0-1782395186107.png

 

2 REPLIES 2

Ankur Bawiskar
Tera Patron

@Damayanti Sarod 

yes you will have to clone the OOTB widget, make changes to it and then add that on your portal page

but why this much customization required?
You can inform your customer about the implications of heavy customization as it leads to technical debt and may have issues during platform upgrades

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

yashkamde
Mega Sage

Hello @Damayanti Sarod ,

 

In your widget code search for your code that renders the RITM hyperlink you highlighted..

typically look like this :

<a href="{{c.getHref(item)}}" target="_blank">
  {{item.short_description || item.display_value}}
</a>

 

And for the info message add this below that RITM code,

<div class="ritm-info-message" ng-if="item.sys_class_name === 'sc_req_item' || item.number">
  <span class="icon-info-circle text-info" aria-hidden="true"></span>
  <small class="text-info" style="margin-left: 4px;">
    Please click the above link for additional details
  </small>
</div>

 

also can add css for styling..

 

If my response helped mark as helpful and accept the solution.