Page 1 of 1

SOLVED - How to populate a field with custom text

Posted: Fri Jul 08, 2011 4:18 pm
by admin12
I have a label field set aside for hints. I want hints to appear when the user hovers over any field.

I know to use the mouseenter command, but I cannot get it to work.

Here is my code:

on mouseenter
lblHints Contents = "Enter your First Name - this is a mandatory field!"
end mouseenter

This code does not work. What do I have to do to make it work.

Thank you.

Mike

Re: How to populate a field with custom text

Posted: Fri Jul 08, 2011 4:24 pm
by dglass

Code: Select all

on mouseenter
   set the text of field "lblHints" to "this is a field"
  
end mouseenter

on mouseleave
  set the text of field "lblHints" to empty
end mouseleave

Re: How to populate a field with custom text

Posted: Fri Jul 08, 2011 4:36 pm
by Klaus
Hi Mike,

I just can't stop to recommend these stacks to get the basics of LiveCode:
http://www.runrev.com/developers/lesson ... nferences/

8)


Best

Klaus