UserNotification.SetActionButtonTitle
-------------------------------------

Sets the title of the button displayed in the notification.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [UserNotification](component_UserNotification.md) | [2.8](newinversion28.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "UserNotification.SetActionButtonTitle"; UserNotificationReference; Text ) 

**MBS**( **"UserNotification.SetActionButtonTitle";** /\* Sets the title of the button displayed in the notification. \*/  
**$UserNotificationReference**; /\* An user notification reference.e.g. $ref \*/   
**$Text**) /\* The new button title.e.g. "Click me" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| UserNotificationReference | An user notification reference. | $ref |
| Text | The new button title. | "Click me" |

### Result

Returns "OK" on success.

### Description

Sets the title of the button displayed in the notification.   
Must be localized as it will be presented to the user. String will be truncated to a length appropriate for display.  
See also [UserNotification.GetActionButtonTitle](UserNotificationGetActionButtonTitle.md)  
### See also

- [UserNotification.GetActionButtonTitle](UserNotificationGetActionButtonTitle.md)
- [UserNotification.GetActivationType](UserNotificationGetActivationType.md)
- [UserNotification.GetOtherButtonTitle](UserNotificationGetOtherButtonTitle.md)
- [UserNotification.hasActionButton](UserNotificationhasActionButton.md)
- [UserNotification.SetHasActionButton](UserNotificationSetHasActionButton.md)
- [UserNotification.SetOtherButtonTitle](UserNotificationSetOtherButtonTitle.md)

### Example Databases

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

This function is free to use.

Created 18th August 2014 , last changed 18th August 2014

  
[UserNotification.ReleaseAll](UserNotificationReleaseAll.md) - [UserNotification.SetContentImage](UserNotificationSetContentImage.md)

[HTML Version](UserNotificationSetActionButtonTitle.shtml)