Class

# NotificationResponseTextField

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

Class for actions which should be presented as a text field for the user to type into and a button to submit the data.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                                                                           | Type                               | Read-Only | Shared |
|--------------------------------------------------------------------------------|------------------------------------|-----------|--------|
| `AuthenticationRequired<notificationresponsetextfield.authenticationrequired>` | `Boolean</api/data_types/boolean>` |           |        |
| `BringToForeground<notificationresponsetextfield.bringtoforeground>`           | `Boolean</api/data_types/boolean>` |           |        |
| `ButtonCaption<notificationresponsetextfield.buttoncaption>`                   | `String</api/data_types/string>`   |           |        |
| `Caption<notificationresponsetextfield.caption>`                               | `String</api/data_types/string>`   |           |        |
| `Destructive<notificationresponsetextfield.destructive>`                       | `Boolean</api/data_types/boolean>` |           |        |
| `Hint<notificationresponsetextfield.hint>`                                     | `String</api/data_types/string>`   |           |        |
| `Identifier<notificationresponsetextfield.identifier>`                         | `String</api/data_types/string>`   |           |        |

## Methods

<div class="rst-class">

table-centered_column_4

</div>

| Name                                                      | Parameters                                                                                                                                                                             | Returns | Shared |
|-----------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|--------|
| `Constructor<notificationresponsetextfield.constructor0>` | caption As `String</api/data_types/string>`, hint As `String</api/data_types/string>`, sendCaption As `String</api/data_types/string>`, identifier As `String</api/data_types/string>` |         |        |

## Property descriptions

<div id="notificationresponsetextfield.authenticationrequired">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

NotificationResponseTextField.AuthenticationRequired

**AuthenticationRequired** As `Boolean</api/data_types/boolean>`

> If `True</api/language/true>`, the device must be unlocked to display the action.

<div id="notificationresponsetextfield.bringtoforeground">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

NotificationResponseTextField.BringToForeground

**BringToForeground** As `Boolean</api/data_types/boolean>`

> If `True</api/language/true>`, this action brings the app to the foreground.

<div id="notificationresponsetextfield.buttoncaption">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

NotificationResponseTextField.ButtonCaption

**ButtonCaption** As `String</api/data_types/string>`

> The caption to put on the button that is placed next to the text field.

<div id="notificationresponsetextfield.caption">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

NotificationResponseTextField.Caption

**Caption** As `String</api/data_types/string>`

> The caption of the button for the action.

<div id="notificationresponsetextfield.destructive">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

NotificationResponseTextField.Destructive

**Destructive** As `Boolean</api/data_types/boolean>`

> If `True</api/language/true>`, you are indicating that this action is destructive in some way.
>
> A destructive action is one where the user will lose data in a way that isn't reversible or easily reversible.
>
> The captions of destructive actions will be drawn in red. Despite this fact, the caption should make it *very clear* that the action is destructive.

<div id="notificationresponsetextfield.hint">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

NotificationResponseTextField.Hint

**Hint** As `String</api/data_types/string>`

> The hint that is placed within the text field.

<div id="notificationresponsetextfield.identifier">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

NotificationResponseTextField.Identifier

**Identifier** As `String</api/data_types/string>`

> The value that will be passed to the `NotificationCenter.UserResponded<mobilenotifications.userresponded>` event.
>
> This value allows you to know which action the user took when the `NotificationCenter.UserResponded<mobilenotifications.userresponded>` event is called.

## Method descriptions

<div id="notificationresponsetextfield.constructor0">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

NotificationResponseTextField.Constructor

**Constructor**(caption As `String</api/data_types/string>`, hint As `String</api/data_types/string>`, sendCaption As `String</api/data_types/string>`, identifier As `String</api/data_types/string>`)

> <div class="note">
>
> <div class="title">
>
> Note
>
> </div>
>
> `Constructors</api/language/constructor>` are special methods called when you create an object with the `New</api/language/new>` keyword and pass in the parameters above.
>
> </div>
>
> Makes a new <span class="title-ref">NotificationResponseTextField</span> and sets the action button's *caption*, the text fieln's *hint*, the caption of the button beside the text field and the *identifier*.

## Compatibility

|                       |        |
|-----------------------|--------|
| **Project Types**     | Mobile |
| **Operating Systems** | iOS    |

<div class="seealso">

`NotificationResponseAction</api/user_interface/notifications/notificationresponseaction>` parent class; `NotificationResponseButton</api/user_interface/notifications/notificationresponsebutton>` class.

</div>
