Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Tooltip in service portal

phani24
Tera Contributor

Hi,

I want to set tooltip on a field value like when I hover on the field then the entire value inside the field should be displayed outside in the hover .How can I achieve this in the service portal 

 

Thanks,

Phani

1 ACCEPTED SOLUTION

Pranav Bhagat
Kilo Sage

Hi

You have to use the combination of ng-model and tool tip ,modify the widget like below

HTML

<div>
  <br>
  <br>
 <input type="text" ng-model="greeting" data-toggle="tooltip" data-placement="right" title="{{greeting}}"/>
</div>

 

Client Script

 

api.controller=function($scope) {
	/* widget controller */
	var c = this;

	$scope.toolTip2=$scope.greeting;
};

 

Regards

Pranav

View solution in original post

9 REPLIES 9

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Have you tried the tooltip field on the Variable form lay-out?

find_real_file.png

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Hi Mark ,

I am not looking for this but front end custom portal field tooltip as i explained in the description.I need some html manipulation to achieve this,please check the screenshot for my requirement 

Ankur Bawiskar
Tera Patron
Tera Patron

@phani 

Please share screenshot of how it should be

Regards
Ankur

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

I need html manipulation way to update the portal field tooltip as shown in the screenshot