Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.GetFieldName
Retrieves the name of a specific interactive form field.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 4.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameters
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
Field | The field index or field name. | "FirstName" |
Result
Returns text or error.
Description
Retrieves the name of a specific interactive form field.Note that the check boxes of a radio button field do not have a name.
See also GetFieldName function in DynaPDF manual.
Examples
List fields with text values:
Set Variable [ $count ; Value: MBS("DynaPDF.GetFieldCount"; $pdf) ]
Set Variable [ $index ; Value: 0 ]
If [ $index < $count ]
Loop
# your script steps here
Set Variable [ $name ; Value: MBS( "DynaPDF.GetFieldName"; $PDF; $index ) ]
Set Variable [ $value ; Value: MBS( "DynaPDF.GetTextFieldValue"; $PDF; $index ) ]
Show Custom Dialog [ "Form field" ; $name & ": " & $value ]
#
# next
Set Variable [ $index ; Value: $index + 1 ]
Exit Loop If [ $index >= $count ]
End Loop
End If
See also
- DynaPDF.GetFieldCount
- DynaPDF.GetFieldMapName
- DynaPDF.GetTextFieldValue
- DynaPDF.New
- DynaPDF.SetFieldBBox
- DynaPDF.SetFieldDate
- DynaPDF.SetFieldFlags
- DynaPDF.SetFieldFont
- DynaPDF.SetFieldIndex
- DynaPDF.SetFieldName
This function checks for a license.
Created 18th August 2014, last changed 23th December 2021