Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   Crossplatform   Server (Not)   Client   Components   Old   Guides
New in version: 5.0   5.1   5.2   5.3   5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1    Statistic  

DynaPDF.AddValToChoiceField

Adds a value to a choice field.

Component: DynaPDF
Version: 4.2
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: Yes

MBS( "DynaPDF.AddValToChoiceField"; PDF; Field; ExpValue; Value { ; Selected } )

Parameters

Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
Field The field index or field name. "FirstName"
ExpValue Export value (can be empty) ""
Value Visible choice value (required). "Hello"
Selected Optional
Whether this value should be selected. 1 to select and 0 to not select.
0

Result

Returns OK or error.

Description

Adds a value to a choice field.
The parameter Field must be a handle of a combo box or list box. The parameter ExpValue defines the export value that will be submitted to a web server if the value is selected in Adobe's Acrobat. The export value can be an empty string and it is possible to use one export value for multiple values.

The parameter Value is the visible text that can be selected inside the combo box or list box. Value must be a unique string inside the combo box or list box values. Value is required; it must not be an empty string.

If the parameter Selected is true the value appears as selected value in Adobe's Acrobat. List boxes support multiple selected values depending on whether the flag ffMultiSelect was set or not (see DynaPDF.SetFieldFlags and DynaPDF.CreateListBox for further information). If the flag ffMultiSelect is not set, a selected value disables all others (default).

See also


DynaPDF.AddOutputIntentEx   -   DynaPDF.AllowPageBreak

Feedback: Report problem or ask question.




Links
MBS Real Studio PDF Plugins - Besuchen Sie die Jugendzentrum Nickenich Webseite