UserNotification.SetHasActionButton
-----------------------------------

Sets whether notification has an action button.

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

MBS( "UserNotification.SetHasActionButton"; UserNotificationReference; Value ) 

**MBS**( **"UserNotification.SetHasActionButton";** /\* Sets whether notification has an action button. \*/  
**$UserNotificationReference**; /\* An user notification reference.e.g. $ref \*/   
**$Value**) /\* The new action button state.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| UserNotificationReference | An user notification reference. | $ref |
| Value | The new action button state. | 1 |

### Result

Returns "OK" on success.

### Description

Sets whether notification has an action button.  
Set to 0 if the notification has no action button. This will be the case for notifications that are purely for informational purposes and have no user action. The default value is 1.  
### See also

- [UserNotification.GetActionButtonTitle](UserNotificationGetActionButtonTitle.md)
- [UserNotification.hasActionButton](UserNotificationhasActionButton.md)
- [UserNotification.HasReplyButton](UserNotificationHasReplyButton.md)
- [UserNotification.SetActionButtonTitle](UserNotificationSetActionButtonTitle.md)
- [UserNotification.SetHasReplyButton](UserNotificationSetHasReplyButton.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.SetDidDeliverNotificationScript](UserNotificationSetDidDeliverNotificationScript.md) - [UserNotification.SetHasReplyButton](UserNotificationSetHasReplyButton.md)

[HTML Version](UserNotificationSetHasActionButton.shtml)