Ghost & Default Text
I want to have ghost text (instructions) and default text (necessary language) on the same form field. Is this possible?
I want to have ghost text (instructions) and default text (necessary language) on the same form field. Is this possible?
// Custom Format script for text field
if (!event.value) {
event.value = "Text goes here";
event.target.display = display.noPrint;
} else {
event.target.display = display.visible;
}
Change that format script to:
// Custom Format script for text field
if (event.value === event.target.defaultValue) {
event.value = "Text goes here";
event.target.display = display.noPrint;
} else {
event.target.display = display.visible;
}
Set the default value of the field to "Please provide ", and you might want to add the following custom Validate script:
if (!event.value) {
event.value = event.target.defaultValue;
}
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.