CNContact.Show
--------------

Shows a contact as sheet.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Contacts](component_Contacts.md) | [10.1](newinversion101.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "CNContact.Show"; ContactIdentifier ) 

**MBS**( **"CNContact.Show";** /\* Shows a contact as sheet. \*/  
**$ContactIdentifier**) /\* The contact identifier.e.g. "46B1E34D-58F9-4B6B-A80D-0F71ABB87A0E" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ContactIdentifier | The contact identifier. | "46B1E34D-58F9-4B6B-A80D-0F71ABB87A0E" |

### Result

Returns OK or error.

### Description

Shows a contact as sheet.  
Shows Cancel and Edit buttons to work on the contact.  
  
Does currently not work on MacOS due to bugs in Apple frameworks.  
Implemented for macOS as popover in v12.5.  
### Examples

Show contact:

 # show a contact by ID (iOS only currently)   
Set Variable \[ $r ; Value: MBS ( "CNContact.Show"; PlaceHolder::ContactID ) \]   
If \[ MBS ("IsError") \]   
 Show Custom Dialog \[ "Failed to show contact" ; $r \]   
End If  
### See also

- [CNContact.JSON](CNContactJSON.md)
- [CNContact.Name](CNContactName.md)
- [CNContact.ShowInAddressbook](CNContactShowInAddressbook.md)
- [IsError](IsError.md)

### Release notes

- **Version 12.5**
    - Added macOS support for [CNContact.Show](https://www.mbsplugins.eu/CNContactShow.shtml) to show contact as popover.
- **Version 10.1**
    - Added [CNContact.Show](https://www.mbsplugins.eu/CNContactShow.shtml) method to show contact as sheet.

### Example Databases

- [Mac and iOS/Contacts/Contacts Dialogs](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Contacts/Contacts%20Dialogs.shtml#3ScriptAnchor_)

### Blog Entries

- [Neues MBS Plugin 12.5 für Claris FileMaker](https://www.mbsplugins.de/archive/2022-11-08/Neues_MBS_Plugin_125_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 12.5 for Claris FileMaker - More than 6800 Functions In One Plugin](https://www.mbsplugins.de/archive/2022-11-08/MBS_Plugin_125_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 12.5pr1](https://www.mbsplugins.de/archive/2022-09-29/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [New in MBS FileMaker Plugin 12.0](https://www.mbsplugins.de/archive/2022-01-31/New_in_MBS_FileMaker_Plugin_12/monkeybreadsoftware_blog_filemaker)
- [New in the MBS FileMaker Plugin 10.1](https://www.mbsplugins.de/archive/2020-03-17/New_in_the_MBS_FileMaker_Plugi/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 10.1 - Über 6100 Funktionen in einem Plugin](https://www.mbsplugins.de/archive/2020-03-10/Neues_MBS_FileMaker_Plugin_101/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 10.1 - More than 6100 Functions In One Plugin](https://www.mbsplugins.de/archive/2020-03-10/MBS_FileMaker_Plugin_101_-_Mor/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.1pr2](https://www.mbsplugins.de/archive/2020-02-03/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [Contact picker and viewer for FileMaker](https://www.mbsplugins.de/archive/2020-01-31/Contact_picker_and_viewer_for_/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 31st January 2020 , last changed 23th September 2022

  
[CNContact.SetValue](CNContactSetValue.md) - [CNContact.ShowInAddressbook](CNContactShowInAddressbook.md)

[HTML Version](CNContactShow.shtml)