# Gravity Forms

> Manage Gravity Forms forms and entries on your WordPress site, validate and submit form inputs, read results, and send entry notifications.

App · 16 actions. Web page: https://docs.lodol.com/docs/integrations/gravity-forms

## Actions

### Create entry

Create entry.

**Inputs**

- Form (`form_id`, text, required): Select a form or use its ID.
- Field values (`field_values`, object, required): Fill in the form fields. Values use Gravity Forms field IDs.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "1": "QA value",
    "form_id": "1",
    "id": "1"
  }
}
```

### Create form

Create form.

**Inputs**

- Title (`title`, text, required): The title.
- Fields (`fields`, list, required): Gravity Forms field definitions. Each needs an id, type and label.
- Description (`description`, text): The description.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "fields": [
      {
        "id": 1,
        "label": "QA value",
        "type": "text"
      }
    ],
    "id": 1,
    "title": "QA form"
  }
}
```

### Delete entry

Delete entry.

**Inputs**

- Entry id (`entry_id`, text, required): An entry ID returned by a previous step.
- Force (`force`, number): 0 moves to trash; 1 permanently deletes. Defaults to trash. One of: `0`, `1`.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "data": {
      "id": "qa-resource"
    }
  }
}
```

### Delete form

Delete form.

**Inputs**

- Form (`form_id`, text, required): Select a form or use its ID.
- Force (`force`, number): 0 moves to trash; 1 permanently deletes. Defaults to trash. One of: `0`, `1`.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "data": {
      "id": "qa-resource"
    }
  }
}
```

### Get entry

Get entry.

**Inputs**

- Entry id (`entry_id`, text, required): An entry ID returned by a previous step.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "1": "QA value",
    "form_id": "1",
    "id": "1"
  }
}
```

### Get form

Get form.

**Inputs**

- Form (`form_id`, text, required): Select a form or use its ID.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "fields": [
      {
        "id": 1,
        "label": "QA value",
        "type": "text"
      }
    ],
    "id": 1,
    "title": "QA form"
  }
}
```

### Get form field filters

Get form field filters.

**Inputs**

- Form (`form_id`, text, required): Select a form or use its ID.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "data": {
      "id": "qa-resource"
    }
  }
}
```

### Get form results

Get form results.

**Inputs**

- Form (`form_id`, text, required): Select a form or use its ID.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "data": {
      "id": "qa-resource"
    }
  }
}
```

### List entries

List entries.

**Inputs**

- Search (`search`, object): Entry search options: status, start_date, end_date and field_filters.
- Paging (`paging`, object): Pagination: {"offset":0,"page_size":20}.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "entries": [],
    "total_count": 0
  }
}
```

### List form entries

List form entries.

**Inputs**

- Form (`form_id`, text, required): Select a form or use its ID.
- Search (`search`, object): Entry search options: status, start_date, end_date and field_filters.
- Paging (`paging`, object): Pagination: {"offset":0,"page_size":20}.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "entries": [],
    "total_count": 0
  }
}
```

### List forms

List forms.

**Inputs**: None.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "1": {
      "entries": "0",
      "id": "1",
      "title": "QA form"
    }
  }
}
```

### Send entry notifications

Send entry notifications.

**Inputs**

- Entry id (`entry_id`, text, required): An entry ID returned by a previous step.
- Notification ids (`notification_ids`, text): Comma-separated notification IDs. Leave empty to process all configured notifications.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "data": {
      "id": "qa-resource"
    }
  }
}
```

### Submit form

Submit form.

**Inputs**

- Form (`form_id`, text, required): Select a form or use its ID.
- Field values (`field_values`, object, required): Fill in the submitted form inputs. Submissions run notifications and add-on feeds.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "is_valid": true,
    "page_number": 0,
    "source_page_number": 1
  }
}
```

### Update entry

Update entry.

**Inputs**

- Entry id (`entry_id`, text, required): An entry ID returned by a previous step.
- Field values (`field_values`, object, required): Fill in the form fields. Values use Gravity Forms field IDs.
- Status (`status`, text): The status. One of: `active`, `spam`, `trash`.
- Is read (`is_read`, number): The is read. One of: `0`, `1`.
- Is starred (`is_starred`, number): The is starred. One of: `0`, `1`.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "1": "QA value",
    "form_id": "1",
    "id": "1"
  }
}
```

### Update form

Update form.

**Inputs**

- Form (`form_id`, text, required): Select a form or use its ID.
- Title (`title`, text): The title.
- Fields (`fields`, list): Gravity Forms field definitions. Each needs an id, type and label.
- Description (`description`, text): The description.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "fields": [
      {
        "id": 1,
        "label": "QA value",
        "type": "text"
      }
    ],
    "id": 1,
    "title": "QA form"
  }
}
```

### Validate submission

Validate submission.

**Inputs**

- Form (`form_id`, text, required): Select a form or use its ID.
- Field values (`field_values`, object, required): Fill in the submitted form inputs. Submissions run notifications and add-on feeds.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "is_valid": true,
    "page_number": 0,
    "source_page_number": 1
  }
}
```
