---
schema_version: "1"
id: 1ce67998e534b07f3a1539a4183861a95e2437ddcecb0a662b88fcf47a30160f
title: Work with Fields
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/salesforce-slack-sdk/apex-slack-sdk/guides/apex_ref/apex_ref_fields.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-slack-sdk/guide/apex_ref_fields.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: e115723965e3668f576916b945abcfcaa9b9173e2e83716e27700ff7871ccc2f
products:
  - Apex SDK for Slack (Beta)
---
# Work with Fields

Use the `Field` class to work with fields in Slack.

## Field Class

Represents a field.

### Field Methods

The following are methods for `Field`.

#### getTitle()

**Signature**

```java
public String getTitle()
```

**Return Value**

Type: String

#### getValue()

**Signature**

```java
public String getValue()
```

**Return Value**

Type: String

#### isValueShortEnough()

**Signature**

```java
public Boolean isValueShortEnough()
```

**Return Value**

Type: Boolean

#### setTitle(title)

**Signature**

```java
public void setTitle(String title)
```

**Parameters**

_title_

Type: String

**Return Value**

Type: void

#### setValue(value)

**Signature**

```java
public void setValue(String value)
```

**Parameters**

_value_

Type: String

**Return Value**

Type: void

#### setValueShortEnough(valueShortEnough)

**Signature**

```java
public void setValueShortEnough(Boolean valueShortEnough)
```

**Parameters**

_valueShortEnough_

Type: Boolean

**Return Value**

Type: void
