Forum


Replies: 1   Views: 958
Replace text form field with value
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by syncflipper  · 21-07-2021 - 15:26

Hello!
Is there a way to identify a Text Form Field inside a docx and replace it with a value?

Posted by admin  · 21-07-2021 - 17:32

Hello,

You can use modifyInputFields to modify input fields in a Word. Or DOCXPath to do more advanced changes.

replaceVariableByText using the raw option can be useful for global replacements if needed.

Regards.