The CreatorCon Call for Content is officially open! Get started here.

Can we pop-up message / alert when we mouse click /Hover on any field ?

Virendra K
Kilo Sage

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

 

1 ACCEPTED SOLUTION

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.

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Virendra,

check below link and see if it helps

https://community.servicenow.com/community?id=community_question&sys_id=c02bc3eddb5cdbc01dcaf3231f96...

https://community.servicenow.com/community?id=community_question&sys_id=cf99cba5db5cdbc01dcaf3231f96...

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

Ravali G
Kilo Expert

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

Thanks for your reply. I tried but alert message is not displaying on portal page

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.