Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Fillable Form

Community Beginner ,
Jul 11, 2023 Jul 11, 2023

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?

TOPICS
JavaScript , PDF , PDF forms
638
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 11, 2023 Jul 11, 2023
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 12, 2023 Jul 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 12, 2023 Jul 12, 2023
LATEST
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines