QLPreviewPanel.SetSharingAllowed
--------------------------------

Sets whether sharing is allowed.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [QuickLook](component_QuickLook.md) | [11.3](newinversion113.md) | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "QLPreviewPanel.SetSharingAllowed"; Value ) 

**MBS**( **"QLPreviewPanel.SetSharingAllowed";** /\* Sets whether sharing is allowed. \*/  
**$Value**) /\* Pass 1 to allow or 0 to disallow. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | Pass 1 to allow or 0 to disallow. |  |

### Result

Returns OK or error.

### Description

Sets whether sharing is allowed.  
By default is this enabled.  
### Examples

Allow sharing:

 Set Variable \[ $r ; Value: MBS ( "QLPreviewPanel.SetSharingAllowed"; 1 ) \]  
Disallow sharing

 Set Variable \[ $r ; Value: MBS ( "QLPreviewPanel.SetSharingAllowed"; 0 ) \]  
### See also

- [QLPreviewPanel.GetEditingAllowed](QLPreviewPanelGetEditingAllowed.md)
- [QLPreviewPanel.GetSharingAllowed](QLPreviewPanelGetSharingAllowed.md)
- [QLPreviewPanel.SetEditingAllowed](QLPreviewPanelSetEditingAllowed.md)

### Release notes

- **Version 11.3**
    - Added [QLPreviewPanel.SetSharingAllowed](https://www.mbsplugins.eu/QLPreviewPanelSetSharingAllowed.shtml) and [QLPreviewPanel.GetSharingAllowed](https://www.mbsplugins.eu/QLPreviewPanelGetSharingAllowed.shtml) functions.

### Blog Entries

- [New in MBS FileMaker Plugin 11.3](https://www.mbsplugins.de/archive/2021-07-27/New_in_MBS_FileMaker_Plugin_11/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 11.3](https://www.mbsplugins.de/archive/2021-07-12/Neues_MBS_FileMaker_Plugin_113/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 11.3 - More than 6500 Functions In One Plugin](https://www.mbsplugins.de/archive/2021-07-12/MBS_FileMaker_Plugin_113_-_Mor/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.3pr7](https://www.mbsplugins.de/archive/2021-07-09/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 6th July 2021 , last changed 24th August 2022

  
[QLPreviewPanel.SetEditingAllowed](QLPreviewPanelSetEditingAllowed.md) - [QLPreviewPanel.Show](QLPreviewPanelShow.md)

[HTML Version](QLPreviewPanelSetSharingAllowed.shtml)