
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2019 02:14 AM
Hi All,
I have requirement to pop-up a message or alert if I click or hover mouse on a field?
Can we do it ? How ?
Thanks.
Regards,
Virendra
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2019 05:06 AM
Hi,
Add the message in Tooltip field of the variable.So that on hover of field name message is displayed.
This works on portal also.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2019 02:54 AM
Hi Virendra,
check below link and see if it helps
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2019 02:57 AM
Hey Virendra Kharkar,
Yes you can pop-up a message or alert on hover mouse on a field.
You need to write an onLoad client script for this,
function onLoad() {
//Type appropriate comment here, and begin script below
var control=g_form.getControl('field name');
jslog('control = ' + control);
control.onmouseover=myOnhover;
function myOnhover() {
alert(getMessage('I hovered'));
}
}
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2019 04:29 AM
Thanks for your reply. I tried but alert message is not displaying on portal page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2019 05:06 AM
Hi,
Add the message in Tooltip field of the variable.So that on hover of field name message is displayed.
This works on portal also.
Thanks.