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: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

DynaPDF.GetFieldAsJSON

Queries one form fields as JSON object.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 10.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.GetFieldAsJSON"; PDF; Field )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
Field The field index or field name.
Zero based and up to DynaPDF.GetFieldCount-1.
"FirstName"

Result

Returns JSON or error.

Description

Queries one form fields as JSON object.
See TPDFFieldEx structure in DynaPDF manual, which we convert to JSON for you.

Keys include Deleted, BBox, FieldType, GroupType, Handle, BackColor, BackColorSP, BorderColor, BorderColorSP, BorderStyle, BorderWidth, CharSpacing, Checked, CheckBoxChar, DefState, Description, EditFont, ExpValCount, ExpValue, FieldFlags, FieldFont, FontSize, FieldName, HighlightMode, IsCalcField, MapName, MaxLen, ChildrenCount, Children, Parent, PageNum, Rotate, TextAlign, TextColor, TextColorSP, TextScaling, ToolTip, UniqueName, Value, WordSpacing, PageIndex, Barcode, Signature, ModDate, CaptionPos, DownCaption, DownImage, RollCaption, RollImage, UpCaption, UpImage, OC, Action, Action and Events.

Examples

Query JSON for one field by name:

Set Variable [ $JSON ; Value: MBS( "DynaPDF.GetFieldAsJSON"; $PDF; "FirstName" ) ]

Query JSON for one field by index:

Set Variable [ $JSON ; Value: MBS( "DynaPDF.GetFieldAsJSON"; $PDF; 0 ) ]

See also

Release notes

Blog Entries

FileMaker Magazin

Created 19th September 2020, last changed 11st January 2021


DynaPDF.GetField - DynaPDF.GetFieldBackColor

Feedback: Report problem or ask question.




Links
MBS FileMaker tutorial videos

Start Chat