How can I add 'Click here' before the hyperlink on hrm_todos_page on esc portal?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi community,
How can I add 'Click here' before the hyperlink on hrm_todos_page on esc portal?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
I tried to update the Body HTML template in the widget, from -
<a id="{{data.sysId}}_todo_link" ng-href="{{data.url}}" aria-label="Parent task, {{::data.displayValueList[1]}}" ng-bind-html="::data.displayValueList[1]"></a>
to this -
<a id="{{data.sysId}}_todo_link" ng-href="{{data.url}}" aria-label="Parent task, {{::data.displayValueList[1]}}" ng-bind-html="'Click here'+::data.displayValueList[1]"></a>
but this did not work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi,
ng-bind-html does not support string concatenation, so adding text like 'Click here' + value will not work in this case.
Since you only need to show static text before the hyperlink, you can remove ng-bind-html and directly place the text inside the anchor tag.
Please try the below code:
<a id="{{data.sysId}}_todo_link"
ng-href="{{data.url}}"
aria-label="Parent task, {{::data.displayValueList[1]}}">
Click here {{::data.displayValueList[1]}}
</a>
If this resolves your issue, please mark this response as the correct answer and give it a like. It will help others find the solution more easily.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
It shows the hyperlink for HR Case for me. HR Case + Short Description
Is that not happening for you?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
