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
MBS( "DynaPDF.GetTextFieldValue"; PDF; Field )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
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

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 23th December 2021


DynaPDF.GetTextFieldDefaultValue - DynaPDF.GetTextRise