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.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
The function sets the flags of a specific interactive form field.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 4.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
Field | The field index or field name. | "FirstName" |
Flags | New field flags. You can pass a flag by name | 1 |
Reset | Pass 1 to set flags to the ones you passed or pass 0 to add the flag. | 1 |
Returns OK or error.
See also SetFieldFlags function in DynaPDF manual.
Create a read only invisible field to e.g. hide your record ID in FileMaker:
Set Variable [ $r; Value:
Let ( [
fieldName = "ID";
field = MBS( "DynaPDF.CreateTextField"; $pdf; fieldName; -1; 0; 200; 120; -50; 300; 20 );
r = MBS("DynaPDF.SetFieldFlags"; $pdf; field; "Hidden ReadOnly Invisible NoView"; 0)
/* yes, three ways to hide! */
]; field ) ]
Create readonly field:
Set Variable [ $r; Value:
Let ( [
fieldName = "Customer No";
field = MBS( "DynaPDF.CreateTextField"; $pdf; fieldName; -1; 0; 200; 120; -50; 300; 20 );
r = MBS("DynaPDF.SetFieldFlags"; $pdf; field; "ReadOnly"; 0)
]; field ) ]
This function checks for a license.
Created 18th August 2014, last changed 15th November 2022