# WPForms

> Read WordPress forms, check submission totals, and start workflows from new entries.

App · 5 actions. Web page: https://docs.lodol.com/docs/integrations/wpforms

## Actions

### Get a form

Read a form and its field definitions.

**Inputs**

- Form (`form_id`, number, required): The form to read. At least 1.
- Include fields (`include_fields`, true/false): Include the form fields.

**Outputs**

- `data` (object): The response from WPForms.

**Example output**

```json
{
  "data": {
    "created": "example",
    "fields": [
      {}
    ],
    "id": 1,
    "modified": "example",
    "settings": {},
    "status": "example",
    "title": "example"
  }
}
```

### Get a form entry

Read the field answers from one saved submission.

**Inputs**

- Entry ID (`entry_id`, number, required): The entry ID from List form entries. At least 1.

**Outputs**

- `data` (object): The response from WPForms.

**Example output**

```json
{
  "data": {
    "date": "example",
    "fields": {},
    "form_id": 1,
    "id": 1,
    "starred": true,
    "status": "example",
    "viewed": true
  }
}
```

### Get form statistics

Read totals and see whether entry details are available.

**Inputs**

- Form (`form_id`, number, required): The form to read. At least 1.

**Outputs**

- `data` (object): The response from WPForms.

**Example output**

```json
{
  "data": {
    "entries_available": true,
    "form_id": 1,
    "starred_entries": 1,
    "total_entries": 1,
    "unread_entries": 1
  }
}
```

### List form entries

Read completed entries or select a special entry status.

**Inputs**

- Form (`form_id`, number, required): The form to read. At least 1.
- Status (`status`, text): Leave empty for completed entries. One of: `partial`, `abandoned`, `spam`, `trash`.
- Type (`type`, text): Filter by whether an entry has been read or starred. One of: `read`, `unread`, `starred`.
- Include fields (`include_fields`, true/false): Include submitted answers.
- Limit (`limit`, number): Maximum records to return. From 1 to 100.
- Offset (`offset`, number): Number of records to skip. At least 0.

**Outputs**

- `data` (object): The response from WPForms.

**Example output**

```json
{
  "data": {
    "entries": [
      {
        "date": "example",
        "form_id": 1,
        "id": 1,
        "starred": true,
        "status": "example",
        "viewed": true
      }
    ],
    "form_id": 1,
    "next_offset": 1,
    "total": 1
  }
}
```

### List forms

List forms by publishing status.

**Inputs**

- Status (`status`, text): The publishing status to list. One of: `publish`, `draft`, `trash`.
- Limit (`limit`, number): Maximum records to return. From 1 to 100.
- Offset (`offset`, number): Number of records to skip. At least 0.

**Outputs**

- `data` (object): The response from WPForms.

**Example output**

```json
{
  "data": {
    "forms": [
      {
        "created": "example",
        "id": 1,
        "modified": "example",
        "status": "example",
        "title": "example"
      }
    ],
    "next_offset": 1,
    "total": 1
  }
}
```
