I've got a bunch of text fields that I populate with default text when the card opens.
When the user clicks on the text field to input their own data, I'd like that text field to clear out the default text, and be automatically focused so the user can start typing.
The only way I've been able to figure this out is to put a see-thru button above the text field, that when clicked, will disable the button, put empty into the field and focus on the field.
Like this:
Code: Select all
on mouseUp
if the short name of the target is "btnTest" then
set the disabled of the target to true
put empty into field "fldTest"
focus on field "fldTest"
end if
end mouseUp
Also, I'd like to put the default text back into the field if the user doesn't input any information.
So, lets say the user clicks on that field - the field clears out the content and focuses, but the user decides to click on another field instead and doesn't actually end up typing anything into the field that was previously clicked on - how can I easily put the default text back into the field?