Skip to content
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

Filling fileds in format name1[0].name2[0].name3[0].field1[0] not found #8

Open
tinodesigns opened this issue Sep 4, 2024 · 1 comment

Comments

@tinodesigns
Copy link

tinodesigns commented Sep 4, 2024

Hi there,

I have a form with filed names fo the following format:
topmostSubform[0].CopyA[0].LeftCol[0].f1_5[0]

In fpdm I get the following error:
FPDF-Merge Error: field topmostSubform[0].CopyA[0].LeftCol[0].f1_5[0] not found

is it not possible to have . and [] in the names of the fields?

It works great filling these out normally. but FPDM seems not to like them. How do I have to address them to make sure they are found. Are these subarrays? and how to use them in FPDM?

My currend fields array look like this:

$fields = array(
'test' => 'TEST0',
'topmostSubform[0].CopyA[0].LeftCol[0].f1_5[0]' => 'TEST1'

);

Worksfine for test. not when the topmostSubform[0].CopyA[0].LeftCol[0].f1_5[0] is added.

Thanks

@tinodesigns
Copy link
Author

I was able to find the correct field name using the output from $pdf->verbose = true; $pdf->verbose_level = 4;

name of such a field woudl be f1_5[0]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant