Copy link to clipboard
Copied
I have searched many threads tried many options and I am struggling to get a finished product.
END GOAL: PDF form has fillable fields with default text telling user what to enter (ex: Last Name) - once user clicks into the field default text disappears and user can start typing their own text. User is able to save with changes to send back to agency. Agency is able to print PDF with user answers visable but default text field not visible.
I am trying to create a fillable passenger information form for my aunt for her travel agency. I created the original form in Canva for font and images purposes. Here are the steps I followed:
Lastly for Actions tab I tried multiple different options:
Under the actions tab, select trigger On Focus, select action Run a JavaScript, click Add...
- Paste the following:
// On Focus script:if (event.target.value==event.target.defaultValue) { event.target.value = ""; event.target.textColor = color.black;
}
- Under the actions tab, select trigger On Blur, select action Run a JavaScript, click Add...
- Paste the following:
// On Blur script:if (event.target.value=="") { event.target.value = event.target.defaultValue; event.target.textColor = color.ltGray;}
Anyone have any solutions before I pull all my hair out?
Copy link to clipboard
Copied
Use the display property:
https://community.adobe.com/t5/acrobat-discussions/formatting-placeholder-text/td-p/10093060
Copy link to clipboard
Copied
You didn't really describe what the issue is... Is it not working? If so, what happens when you click into and out of the field?
Can you share the file in question with us?
Copy link to clipboard
Copied
You will find the answer in these topics:
https://community.adobe.com/t5/acrobat-sdk-discussions/ghost-default-text/m-p/8019927
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more