cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

PDF form field on title page

jhubackova
13-Aquamarine

PDF form field on title page

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

ACCEPTED SOLUTION

Accepted Solutions
jhubackova
13-Aquamarine
(To:jhubackova)

Here is solution from PTC Support: 

https://www.ptc.com/en/support/article/CS413728

Cause:

  • Each frame/content stream has its own set of counters, each starting at zero
  • Using the same counter in different streams can therefore result in duplicate field names

Resolution:

  • Use a unique identifier for the field name, such as something based on the location path of the current XML node
//DO NOT USE 
//name: "textField_" + formatting.counters[101]++,

//USE
var fieldName =  "text_field_" +  application.calculateHash(formatting.currentXMLNode.getNodePath(1));
 
 

View solution in original post

3 REPLIES 3
jhubackova
13-Aquamarine
(To:jhubackova)

EDIT: or sometime the PDF publishing is finished without error but also WITHOUT Page Region where form field is used.

jhubackova
13-Aquamarine
(To:jhubackova)

EDIT 2 🙈:  Form Field of the type "Check Box" works correctly on the Title Page

jhubackova_0-1706882415844.png

 

jhubackova
13-Aquamarine
(To:jhubackova)

Here is solution from PTC Support: 

https://www.ptc.com/en/support/article/CS413728

Cause:

  • Each frame/content stream has its own set of counters, each starting at zero
  • Using the same counter in different streams can therefore result in duplicate field names

Resolution:

  • Use a unique identifier for the field name, such as something based on the location path of the current XML node
//DO NOT USE 
//name: "textField_" + formatting.counters[101]++,

//USE
var fieldName =  "text_field_" +  application.calculateHash(formatting.currentXMLNode.getNodePath(1));
 
 
Announcements

Top Tags