Highlighted

Field Description

Community Beginner ,
Sep 21, 2020

Copy link to clipboard

Copied

Hi there, I was wondering if there is a way to enter a description into the boxes, that one needs to fill out later in a Form. With the same use as Quickinfo, but as Text in the field itsself. But if one clicks on it, the description disappears and one can just fill out the box. You could also call it example-Text... Any ideas? Thank you 🙂

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

If you use the code I provided in that thread the text will disappear when you click into the field.

TOPICS
How to, PDF forms

Views

116

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Field Description

Community Beginner ,
Sep 21, 2020

Copy link to clipboard

Copied

Hi there, I was wondering if there is a way to enter a description into the boxes, that one needs to fill out later in a Form. With the same use as Quickinfo, but as Text in the field itsself. But if one clicks on it, the description disappears and one can just fill out the box. You could also call it example-Text... Any ideas? Thank you 🙂

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

If you use the code I provided in that thread the text will disappear when you click into the field.

TOPICS
How to, PDF forms

Views

117

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Sep 21, 2020 0
Engaged ,
Sep 21, 2020

Copy link to clipboard

Copied

You can use this code as "Custom Format Script"

if (!event.value) {
event.value = "text goes here";
event.target.display = display.noPrint;
} else {
event.target.display = display.visible;
}

It also won't print instruction text if you need to print file.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 21, 2020 1
Community Beginner ,
Sep 21, 2020

Copy link to clipboard

Copied

Hi Nesa

Thank you for your reply! Unfortunately i don't know how to use codes in Adobe.. and in general 🙂 Is there a way to do it without codes or can you tell me how to do it this way?

 

Thank you and kind Regards

Laura

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 21, 2020 0
Most Valuable Participant ,
Sep 21, 2020

Copy link to clipboard

Copied

Without using a script the only option is the Tooltip text under the field's Properties. It will appear when you hover over the field with the mouse.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 21, 2020 1
Engaged ,
Sep 21, 2020

Copy link to clipboard

Copied

Select prepare form tool:

1.png

Then right click on your text field and select 'Format' tab:

Then click on the field where says 'None' and select 'Custom'

2.png

Click on 'Edit' and paste my code in there.

3.png

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 21, 2020 1
Community Beginner ,
Sep 21, 2020

Copy link to clipboard

Copied

Hi Nesa

 

Nevermind, i figured it out 😄 Now one further question: is there also a possibility to make the text disappear as soon as you click in the field and fill it out?

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 21, 2020 0
Engaged ,
Sep 21, 2020

Copy link to clipboard

Copied

If you used that code it should disappear when you click in field.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 21, 2020 1
Most Valuable Participant ,
Sep 21, 2020

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 21, 2020 1
Community Beginner ,
Sep 21, 2020

Copy link to clipboard

Copied

Hi there, thanks a lot for all the replies! I figured out how to insert the code, but with both versions, the one from Nesa and the one from the website "try67" the text does not disappear, when i click in the field. One has to delete it first manually... any suggestions?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 21, 2020 0
Adobe Community Professional ,
Sep 21, 2020

Copy link to clipboard

Copied

For the first script, did you place it as a custom Format script, or something else?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 21, 2020 1
Most Valuable Participant ,
Sep 21, 2020

Copy link to clipboard

Copied

If you use the code I provided in that thread the text will disappear when you click into the field.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 21, 2020 1
Community Beginner ,
Sep 21, 2020

Copy link to clipboard

Copied

Ok thank you so much for all the help, figured it out now 🙂

 

2 further questions though:

1. is there a way to have the description-text in a different shape or colour than the one that is typed in in the end?

2. In case the text i need to fill in the boxes is too much for the given space, is there a way that the text then just gets smaller so it fits in the box in the end? Because now it just starts scrolling and then if you would want to print it, you wouldn't see the whole information...

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 21, 2020 0
Engaged ,
Sep 21, 2020

Copy link to clipboard

Copied

You can use different aproach if you want to change text color and size.

Go to field properties -> action tab and add javascript for both onFocus and onBlur actions:

Just make sure where it says "Text goes here" when you change that text change it in both codes and make sure it's same in both codes.

Or if you know how to add default value to text field replace "Text goes here" with:

event.target.defaultValue 

On Focus:
if(event.target.value == "Text goes here"){
event.target.value = "";
event.target.textColor = ["G",0];
event.target.textSize = 15;}

On Blur:
if(event.target.value==""){
event.target.value = "Text goes here";
event.target.textColor = ["G",.5];
event.target.textSize = 10;}

 

You can change colors and text size as you see fit.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 21, 2020 0