Hello,
I want to use PDF Form Field functionality (in ATX 8.2.2) on the Title Page of the book
(via page region with the Text Generated Content) but in vain.
PDF creation is aborted with Error message PDFlib Warnings:
create_field: Invalid field pathname 'textField_0' (name 'textField_0' already exists)
The PDF form fields usage inside xml document works correctly according manual: ATX_HOME\samples\APP\PDFFormFields.
Is it possible to use this functionality in the Page Layouts (by using Styler only, without editing in ALD) ?
Thanks for help
Jana
Solved! Go to Solution.
Here is solution from PTC Support:
https://www.ptc.com/en/support/article/CS413728
Cause:
Resolution:
//DO NOT USE
//name: "textField_" + formatting.counters[101]++,
//USE
var fieldName = "text_field_" + application.calculateHash(formatting.currentXMLNode.getNodePath(1));
EDIT: or sometime the PDF publishing is finished without error but also WITHOUT Page Region where form field is used.
EDIT 2 🙈: Form Field of the type "Check Box" works correctly on the Title Page
Here is solution from PTC Support:
https://www.ptc.com/en/support/article/CS413728
Cause:
Resolution:
//DO NOT USE
//name: "textField_" + formatting.counters[101]++,
//USE
var fieldName = "text_field_" + application.calculateHash(formatting.currentXMLNode.getNodePath(1));