How do I make the default title disappear?
Hi Everyone,
Im making a text box that has a default value that "Name" and when the user clicks on the textbox the "Name" value automatically disappears and they can write whatever they want. If they click away without writing anything then "Name" appears back on to the textbox
I understand that it has to do with scripting and the script I have currently forces the user to manually delete the "Name" value out of the textbox
// Custom Format script for text field
if (!event.value) {
event.value = "Name";
event.target.display = display.noPrint;
} else {
event.target.display = display.visible;
}
How should I proceed?
