Delete default value of text field when clicked
hello everyone,
I have several fields in a PDF form with the following function:
if(event.value == "")
{
event.value = "Company Name";
event.target.display = display.noPrint;
}
else
event.target.display = display.visible;
If the default value is not changed, then the text is not printed and that works as intended.
Now I want to make the fields a bit more user-friendly by removing the default text when clicking or tabbing, so that the user can enter their text directly without having to delete the default text beforehand. If they don't enter any new text or click on another field, the default text should appear again. Has anyone here had a similar case?
Many thanks in advance
