Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.GetTextFieldValue
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 |
Parameters
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
Field | The field index or field name. | "FirstName" |
Result
Returns the text or an error.
Description
The function returns the value of a text field.See also GetTextFieldValue 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.GetField
- DynaPDF.GetFieldCount
- DynaPDF.GetFieldExpValue
- DynaPDF.GetFieldName
- DynaPDF.GetTextFieldDefaultValue
- DynaPDF.New
- DynaPDF.SetTextFieldValue
- DynaPDF.SetTextFieldValueEx
Blog Entries
This function checks for a license.
Created 18th August 2014, last changed 23th December 2021