DynaPDF.SetCheckBoxDefState
---------------------------

Changes the default state of a check box.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [4.4](newinversion44.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.SetCheckBoxDefState"; PDF; Field; Checked ) 

**MBS**( **"DynaPDF.SetCheckBoxDefState";** /\* Changes the default state of a check box. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Field**; /\* The field index or field name.e.g. "FirstName" \*/   
**$Checked**) /\* The new default state.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| Field | The field index or field name. | "FirstName" |
| Checked | The new default state. | 1 |

### Result

Returns OK or error.

### Description

Changes the default state of a check box.  
It can differ from the current visible state of the check box. The default state is used when the form is reset with a Reset Form Action.  
The default state of a new check box is always identical with the visible state.  
  
See also [SetCheckBoxDefState](https://www.monkeybreadsoftware.com/DynaPDF-Manual/SetCheckBoxDefState.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetCheckBoxDefState](DynaPDFGetCheckBoxDefState.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetCheckBoxState](DynaPDFSetCheckBoxState.md)

### Blog Entries

- [MBS Filemaker Plugin, version 4.4pr10](https://www.mbsplugins.de/archive/2014-11-08/MBS_Filemaker_Plugin_version_4/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 5th November 2014 , last changed 5th November 2014

  
[DynaPDF.SetCheckBoxChar](DynaPDFSetCheckBoxChar.md) - [DynaPDF.SetCheckBoxState](DynaPDFSetCheckBoxState.md)

[HTML Version](DynaPDFSetCheckBoxDefState.shtml)