Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
The function returns the value of a text field.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 4.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
Field | The field index or field name. | "FirstName" |
Returns the text or an error.
See also GetTextFieldValue function in DynaPDF manual.
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
This function checks for a license.
Created 18th August 2014, last changed 23th December 2021