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.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

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

💬 Ask a question or report a problem