-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read/get the value of FormFields #2281
Labels
Comments
I created a Pull request #2282 to fix this behaviour. Feel free to test this and see if this fixes your problem |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the Bug
I try to get the selected / filled values from FormFields in my word document. But whatever I try - it fails. When I create a word document and add Form Controls by myself, the
getElements()
function always skips them and cannot read them. When I add formFields via function, they are always considered as Text instead of a control field.Steps to Reproduce
Please provide a code sample that reproduces the issue.
Expected Behavior
->getElements()
should return an array with aPhpOffice\PhpWord\Element\FormField
instead of aPhpOffice\PhpWord\Element\PreserveText
Current Behavior
I cannot read the inputs, it's only text
Context
Please fill in your environment information:
The text was updated successfully, but these errors were encountered: