Skip to main content
Karen Thring
Inspiring
October 19, 2017
Answered

Pre-populate text fields to be overwritten

  • October 19, 2017
  • 1 reply
  • 2289 views

I am creating editable PDFs for clients to edit in Reader. I use Acrobat XI. I want to pre-populate text fields that can then be overwritten by the client. Every custom script I have tried does not seem to work.

Thanks in advance.

Karen

This topic has been closed for replies.
Correct answer Karen Thring

But it does not. When it becomes Reader enabled, it does not allow for overwriting.


Trial and error has eventually led me to this which works.

Thanks so much for your assistance however.

Best,

Karen

var haveText = false;

if (event.value.length > 0)

haveText = true;

if (event.target.richText && event.richValue.length > 0)

haveText = true;

if (!haveText) {

text = "Your Name";

event.value = text;

event.value = text;

}

1 reply

try67
Community Expert
Community Expert
October 19, 2017

Why do you want to do it with a script? Just enter the default value for the fields, save the file, and that's it.

Karen Thring
Inspiring
October 19, 2017

Thanks so much for your reply. That certainly works but the client need to highlight the wording first rather than just overwriting it. I use other scripts for character spacing etc (not required in this instance) where client simply overwrites. I should have clarified that was what I was aiming for. Thanks again.

Karen

try67
Community Expert
Community Expert
October 19, 2017