Skip to main content
Participant
May 20, 2024
Question

How to do a Find and Replace of a text word with a form field?

  • May 20, 2024
  • 1 reply
  • 980 views

I want to have a form field where user enters their Company Name and then throughout a long/large doc. the word Company is replaced with the same form field, so it populates with their company name throughout the doc.  Please help me learn if this is possible/how do it, so I don't have to manually change over 200 words to a form field... Thanks!

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
May 20, 2024

In every location where the company name appears, place a form field with the name "CompanyName". Make sure all form fields have the same name. 

This should help:

https://www.pdfscripting.com/public/Editing-Fields-Properties.cfm

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participant
May 20, 2024

Thanks Thom - I was looking for a way to replace the text with a form field in a find/replace way - so that I do not have to place a form field with the name manually in 200 places... is that possible? Or do I have to insert each field manually?

try67
Community Expert
Community Expert
May 20, 2024

If that text is unique you can use a script to find all instances of it and place a text field over them. It's not a trivial task, though.