ListDialog.SetShowCheckboxes
----------------------------

Sets whether to show checkboxes.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [ListDialog](component_ListDialog.md) | [13.5](newinversion135.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "ListDialog.SetShowCheckboxes"; Flags ) 

**MBS**( **"ListDialog.SetShowCheckboxes";** /\* Sets whether to show checkboxes. \*/  
**$Flags**) /\* Combination of various flags:  
0: hide checkboxes  
1: show checkboxes  
2: show alternative style on Windows  
4: limit to one checkbox being checked (new in v14.3)e.g. 1+4 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Flags | Combination of various flags:   0: hide checkboxes   1: show checkboxes   2: show alternative style on Windows   4: limit to one checkbox being checked (new in v14.3) | 1+4 |

### Result

Returns OK or error.

### Description

Sets whether to show checkboxes.  
If checkboxes are enabled, we show a checkbox in each row.  
You can set check states with [ListDialog.SetChecked](ListDialogSetChecked.md) and query them later with [ListDialog.GetChecked](ListDialogGetChecked.md).  
The Select button is enabled, if at least one checkbox is marked or empty selection is allowed.  
Users can filter and rows remember their checked state even when not visible.  
### Examples

Enable checkboxes:

 Set Variable \[ $r ; Value: MBS ("ListDialog.SetShowCheckboxes"; 1) \]  
### See also

- [ListDialog.GetChecked](ListDialogGetChecked.md)
- [ListDialog.GetShowCheckboxes](ListDialogGetShowCheckboxes.md)
- [ListDialog.SetChecked](ListDialogSetChecked.md)
- [ListDialog.SetShowCloseBox](ListDialogSetShowCloseBox.md)

### Release notes

- **Version 14.3**
    - Changed [ListDialog.SetShowCheckboxes](https://www.mbsplugins.eu/ListDialogSetShowCheckboxes.shtml) to allow flag 4 to have checkboxes with only one checkbox checked at maximum.

### Blog Entries

- [MBS FileMaker Advent calendar - Door 10 - Reading The Wish List](https://www.mbsplugins.de/archive/2024-12-10/MBS_FileMaker_Advent_calendar_/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 14.3pr5](https://www.mbsplugins.de/archive/2024-06-26/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin Advent calendar: 22 - ListDialog](https://www.mbsplugins.de/archive/2023-12-22/MBS_Plugin_Advent_calendar_22_/monkeybreadsoftware_blog_filemaker)
- [New in MBS FileMaker Plugin 13.5](https://www.mbsplugins.de/archive/2023-11-28/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 13.5 für Claris FileMaker](https://www.mbsplugins.de/archive/2023-11-07/Neues_MBS_Plugin_135_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 13.5 for Claris FileMaker](https://www.mbsplugins.de/archive/2023-11-07/MBS_Plugin_135_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [List dialog with checkboxes](https://www.mbsplugins.de/archive/2023-10-20/List_dialog_with_checkboxes/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.5pr4](https://www.mbsplugins.de/archive/2023-10-16/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 14th October 2023 , last changed 20th June 2024

  
[ListDialog.SetSelectedTitle](ListDialogSetSelectedTitle.md) - [ListDialog.SetShowCloseBox](ListDialogSetShowCloseBox.md)

[HTML Version](ListDialogSetShowCheckboxes.shtml)