I use this method if the previous post’s tool tip is not suitable. It makes use of the “attachEvent” function that adds listeners for when certain events happens to the field/form and runs methods if the event takes place.
In the following examples we attach mouse over, on and off the email field. The methods are to change the label of that field.
You will notice that i have used the “_c” area of the attribute, this is because usually the label is stored e.g. crmForm.all.emailaddress1_c
var email = crmForm.all.emailaddress1
email.attachEvent( “onmouseover” , ShowDesc );
email.attachEvent( “onfocus” , ShowDesc );
email.attachEvent( “onmouseout” , ResumeDesc );
function ShowDesc () {
crmForm.all.emailaddress1_c.innerText = “This is where the email address is entered!”
}
function ResumeDesc () {
crmForm.all.emailaddress1_c.innerText = “Email”
}
The result should be as below
- Mouse not hovering over email
Image may be NSFW.
Clik here to view.
- Mouse hovering over email field
Image may be NSFW.
Clik here to view.
Enjoy
Jonathan
↧
Changing the label on a CRM form when highlighted by the cursor
↧