Fillable Form
- July 12, 2023
- 3 replies
- 652 views
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:
- Upload PDF to Adobe
- Choose "Prepare Form"
- Choose "Add Text Field" from top menu bar
- In properties menu: General: form field is visible, Options: alignment: center, deafult text: Last Name
Lastly for Actions tab I tried multiple different options:
- I left it blank
- I ran these two scripts:
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?
