DynaPDF Manual - Page 74

Previous Page 73   Index   Next Page 75

Interactive Forms
Page 74 of 860
However, with the exception described above, field names must be unique within the hierarchy
in which they appear. This is especially important when multiple Interactive Forms are
imported.
When importing multiple Interactive Forms it is highly recommended to check for invalid
duplicate field names. This can be done with the function CheckFieldNames(). The function
returns the handle of the first field which contains a field name that is already in use. You can
then change the field name with SetFieldName() and execute CheckFieldNames() again until all
invalid field names are changed.
After changing a field name you must also check whether the field is used within a JavaScript
Action or function. Such scripts must be changed so that they do not become invalid. Due to the
possible references of fields within JavaScript functions and Actions, merging of Interactive
Forms is very complicated and should be avoided whenever possible.
 

Previous topic: Field Names, Fields with identical names

Next topic: Actions