Forum


Replies: 2   Views: 531
How to get a list of inputfields, similar to gettemplatevariables()?
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 kronholm  · 01-09-2022 - 10:41

You can easily get a list of template variables with the getTemplateVariables() method.

But is there a similar way to get a list of InputFields in the document?

As far as I can tell, it's possible to modify input fields via modifyInputFields($data) method, but there is no way to actually get a list of available input fields.

Edit: Same question for MergeFields.