> ## Documentation Index
> Fetch the complete documentation index at: https://superofficeas-bugfix-ty-screen-designer-paradox.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Select insert text

> Select insert text

This element is used to select a predefined text to insert into a message.

Text can be selected from FAQ entries, reply templates, and previous messages.

## Configuration

| Setting        | Description                                                      |
| :------------- | :--------------------------------------------------------------- |
| htmlEditorName | The name of the editor element this element will be connected to |
| customerId     | ID of customer to load into parser                               |
| onlyLeafNodes  | Whether only leaf nodes can be selected                          |

## Functions

### toString()

Returns the ID of the selected entry. The ID is prefixed depending on the type of the selected entry:

* doc.
* faq.
* msg.

### getFieldValue(String field)

| Field              | Description |
| :----------------- | :---------- |
| selectedInsertText |             |
| attachmentIds      |             |

### setFieldValue(String action, Map values)

| Action                 | Map keys                                                               | Description            |
| :--------------------- | :--------------------------------------------------------------------- | :--------------------- |
| selectInsertTextValues | ticketId<br />faqAccess<br />customerId<br />userId<br />attachmentIds | Sets different values. |

These keys are used to determine which entries can be selected.

The screen must include a CGI variable named `actionType` and set to 0, 1, or 2 for messages, FAQs, and customer and user parser variables to be included automatically.

**faqAccess:**

* 1 KB\_ACCESS\_PRIVATE
* 2 KB\_ACCESS\_INTERNAL
* 3 KB\_ACCESS\_PUBLIC\_AUTHENTICATED (default)
* 4 KB\_ACCESS\_PUBLIC
