Skip to main content
Participant
July 12, 2023
Question

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:

 

  1.  Upload PDF to Adobe
  2.  Choose "Prepare Form"
  3.  Choose "Add Text Field" from top menu bar
  4.  In properties menu: General: form field is visible, Options: alignment: center, deafult text: Last  Name

 

Lastly for Actions tab I tried multiple different options:

  1. I left it blank
  2.  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?

This topic has been closed for replies.

3 replies

JR Boulay
Community Expert
Community Expert
July 12, 2023
try67
Community Expert
Community Expert
July 12, 2023

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?

Bernd Alheit
Community Expert
Community Expert
July 12, 2023