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

How do I create grey replaceable text in a text frame?

Community Beginner ,
Nov 17, 2016 Nov 17, 2016

Copy link to clipboard

Copied

I am creating a PDF form in InDesign CC (2017) and have some text frames that I would like to place grey text that says things like 'Name', 'Job Title' etc which will be replaced when the answers are typed in.

I have looked through the forums and InDesign unable to find anything. Any help would be grand!

Views

7.8K

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
community guidelines

correct answers 1 Correct answer

Guide , Nov 17, 2016 Nov 17, 2016

in acrobat pro select the frame, then right click and choose properties

Schermata 2016-11-17 alle 11.33.36.png

Votes

Translate

Translate
Guide ,
Nov 17, 2016 Nov 17, 2016

Copy link to clipboard

Copied

in acrobat pro select the frame, then right click and choose properties

Schermata 2016-11-17 alle 11.33.36.png

Votes

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
community guidelines
Mentor ,
Nov 17, 2016 Nov 17, 2016

Copy link to clipboard

Copied

var message = 'Job title'

if (event.value == '') {

event.target.display = display.noPrint

event.value = message

} else {

event.terge.display = display.visible

}

_______

this is for not retype. Oscar you not added text

But text is still not grey. Can you add code for do this text in grey color please?

MrSa1ter​

As you understand - you can't do this in InDesign, but you can do in Acrobat.

Remember, never say you can't do something in InDesign, it's always just a question of finding the right workaround to get the job done. © David Blatner

Votes

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
community guidelines
Guide ,
Nov 17, 2016 Nov 17, 2016

Copy link to clipboard

Copied

text in grey:

select the frame, then right click and choose properties and choose the value of black

Schermata 2016-11-17 alle 11.58.48.png

Votes

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
community guidelines
Mentor ,
Nov 17, 2016 Nov 17, 2016

Copy link to clipboard

Copied

This is grey for filling text too. What about grey only for 'Job title" and after type something in the field using settings of your previous post?

Remember, never say you can't do something in InDesign, it's always just a question of finding the right workaround to get the job done. © David Blatner

Votes

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
community guidelines
Mentor ,
Nov 17, 2016 Nov 17, 2016

Copy link to clipboard

Copied

I'm find the answer - Re: Place holders (ghost text) in Form text fields

Remember, never say you can't do something in InDesign, it's always just a question of finding the right workaround to get the job done. © David Blatner

Votes

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
community guidelines
Guide ,
Nov 17, 2016 Nov 17, 2016

Copy link to clipboard

Copied

right GeorgeS!

but I prefer insert numerics value.

For example:

instead of

event.target.textColor = color lt.Gray

i prefer for example insert

event.target.textColor = ["RGB", 135/255, 136/255, 138/255]

you can choose any value

Votes

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
community guidelines
Guide ,
Nov 17, 2016 Nov 17, 2016

Copy link to clipboard

Copied

to complete above information:

1) for grey placeholder text:

Schermata 2016-11-17 alle 14.40.59.png

2) for typed black text

Schermata 2016-11-17 alle 14.41.10.png

Votes

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
community guidelines
Community Beginner ,
Nov 17, 2016 Nov 17, 2016

Copy link to clipboard

Copied

Thank you Oscar, thats brilliant.
Pointing me in the direction of Acrobat was what I needed. Im starting to realise that InDesign doesn't have all the answers and Acrobat is the solution.

I have avoided the Java Scripting option though, as I have had issues in the past.

Instead under the 'Options' tab, I set the 'Default value' to Job Title.
It just means that the Client has to highlight the Job Title text to replace it.

Thank you all for your help, especially you Oscar!

Votes

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
community guidelines
Guide ,
Nov 17, 2016 Nov 17, 2016

Copy link to clipboard

Copied

youre welcome!

Votes

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
community guidelines
New Here ,
Oct 18, 2017 Oct 18, 2017

Copy link to clipboard

Copied

Hi

I've been using your script to make the replaceable text in a text box, which is great... but when I go to print the document the new info added to the text box does not print. It does show up in a pdf, but for some reason does not print. Does this make sense?

So I want to be able to have the text that disappears be replaced by what the client types in (which you have supplied as a script), then have the info the client types in be able to print. When I go to print for some reason the texts boxes print empty.

Votes

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
community guidelines
Guide ,
Oct 19, 2017 Oct 19, 2017

Copy link to clipboard

Copied

Did you copy the text from post n. 2?
There is a error in the last line.
there is written "terge.display" instead of "target.display".

Then

var message = 'Job title'

if (event.value == '') {

event.target.display = display.noPrint

event.value = message

} else {

event.target.display = display.visible

}

Votes

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
community guidelines
New Here ,
Oct 19, 2017 Oct 19, 2017

Copy link to clipboard

Copied

YES! that was the problem. Thank you so much!

Votes

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
community guidelines
New Here ,
Jun 10, 2019 Jun 10, 2019

Copy link to clipboard

Copied

Is there a way to make it so the text disappears when the field is selected, instead of having to delete the text before filling out the form?

Votes

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
community guidelines
Guide ,
Jun 11, 2019 Jun 11, 2019

Copy link to clipboard

Copied

it is already so.

on clic the placeholder text disappears

Senza nome.gif

Votes

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
community guidelines
New Here ,
Sep 05, 2022 Sep 05, 2022

Copy link to clipboard

Copied

LATEST

This was so super helpful thank you. But could you please extrapolate the code for multiple lines of replaceable text for me?

Votes

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
community guidelines