Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

DynaPDF.SetTextFieldValue

The function sets or changes the value and default value of a text field.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 4.1 Yes Yes Yes Yes Yes

MBS( "DynaPDF.SetTextFieldValue"; PDF; Field; Value; DefValue; Align )

Parameters

Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
Field The field index or field name. "FirstName"
Value The new text field value. "Andreas"
DefValue The new default text field value. ""
Align The text alignment. Can be Left, Center, Right or Justify. "Justify"

Result

Returns OK or error.

Description

The function sets or changes the value and default value of a text field.
The parameters Value and DefValue can both be empty, if both values should be deleted. The parameter DefValue defines the default value of the field, this value is shown in Adobe's Acrobat as long as the field has no value; it will be hidden when entering the field.
The strings are drawn with the font that is associated with the field. The font size is taken from the field settings. If set to "auto", the font size is computed from the field's bounding box.

See also SetTextFieldValue function in DynaPDF manual.

Examples

Sets text field value:

MBS( "DynaPDF.SetTextFieldValue"; $PDF; "FirstName"; "Geoff"; ""; "Left" )

See also

Example Databases


DynaPDF.SetTextDrawMode   -   DynaPDF.SetTextFieldValueEx

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins