PhotoPicker.SetSelectionLimit
-----------------------------

Sets the selection limit.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [PhotoPicker](component_PhotoPicker.md) | [12.5](newinversion125.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "PhotoPicker.SetSelectionLimit"; Value ) 

**MBS**( **"PhotoPicker.SetSelectionLimit";** /\* Sets the selection limit. \*/  
**$Value**) /\* The new limit.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | The new limit. | 1 |

### Result

Returns OK or error.

### Description

Sets the selection limit.  
The maximum number of assets that can be selected. Default is 1.  
Setting selectionLimit to 0 means maximum supported by the system.  
### See also

- [PhotoPicker.GetSelectionLimit](PhotoPickerGetSelectionLimit.md)
- [PhotoPicker.Present](PhotoPickerPresent.md)

### Example Databases

- [iOS/Examples/iOS Photo Picker](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/iOS/Examples/iOS%20Photo%20Picker.shtml#4ScriptAnchor_)

### Blog Entries

- [Top 10 from the MBS Plugin in 2022](https://www.mbsplugins.de/archive/2022-12-29/Top_10_from_the_MBS_Plugin_in_/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 12.5 News](https://www.mbsplugins.de/archive/2022-11-17/MBS_FileMaker_Plugin_125_News/monkeybreadsoftware_blog_filemaker)
- [PhotoPicker for iOS with FileMaker iOS SDK](https://www.mbsplugins.de/archive/2022-11-09/PhotoPicker_for_iOS_with_FileM/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 2/2025, Seite 20](https://filemaker-magazin.de/neuigkeit/4286-Appetithappen-FMM_202502)
- [Ausgabe 2/2025, Seite 18](https://filemaker-magazin.de/neuigkeit/4286-Appetithappen-FMM_202502)

This function is free to use.

Created 28th September 2022 , last changed 24th March 2023

  
[PhotoPicker.SetScript](PhotoPickerSetScript.md) - [PhotoPicker.SetSize](PhotoPickerSetSize.md)

[HTML Version](PhotoPickerSetSelectionLimit.shtml)