# Wufoo

> Read forms, fields, entries and reports, and submit form entries in Wufoo.

App · 8 actions. Web page: https://docs.lodol.com/docs/integrations/wufoo

## Actions

### Count form entries

Count a form's entries, or only those that match a filter.

**Inputs**

- Form (`form`, text, required): The form: pick one, or give its permanent ID (hash) or URL name.
- Filter field (`filter_field`, text): Only count or list entries where this field matches: a field ID such as `Field1`, or `EntryId`, `DateCreated` or `DateUpdated`.
- Filter operator (`filter_operator`, text): How the field is compared with Filter value. Dates are in Wufoo's Pacific time. One of: `Is_equal_to` (Is equal to), `Is_not_equal_to` (Is not equal to), `Contains`, `Does_not_contain` (Does not contain), `Begins_with` (Begins with), `Ends_with` (Ends with), `Is_less_than` (Is less than), `Is_greater_than` (Is greater than), `Is_on` (Is on), `Is_before` (Is before), `Is_after` (Is after), `Is_not_NULL` (Is not null).
- Filter value (`filter_value`, text): The value to compare with. Not needed for Is not null.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "EntryCount": "example"
  }
}
```

### Get a form

Get one form's settings: its name, links, entry limit and dates.

**Inputs**

- Form (`form`, text, required): The form: pick one, or give its permanent ID (hash) or URL name.
- Include today count (`include_today_count`, true/false): Also return how many entries the form has had today.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "Forms": [
      {
        "DateCreated": "example",
        "DateUpdated": "example",
        "Description": "example",
        "Email": "example",
        "EndDate": "example",
        "EntryCountToday": "example",
        "EntryLimit": "example",
        "Hash": "example",
        "IsPublic": "example",
        "Language": "example",
        "LinkEntries": "example",
        "LinkEntriesCount": "example",
        "LinkFields": "example",
        "Name": "example",
        "RedirectMessage": "example",
        "StartDate": "example",
        "Url": "example"
      }
    ]
  }
}
```

### List form entries

List a form's entries, up to 100 at a time. Answers are keyed by field ID (Field1, Field2 and so on).

**Inputs**

- Form (`form`, text, required): The form: pick one, or give its permanent ID (hash) or URL name.
- Filter field (`filter_field`, text): Only count or list entries where this field matches: a field ID such as `Field1`, or `EntryId`, `DateCreated` or `DateUpdated`.
- Filter operator (`filter_operator`, text): How the field is compared with Filter value. Dates are in Wufoo's Pacific time. One of: `Is_equal_to` (Is equal to), `Is_not_equal_to` (Is not equal to), `Contains`, `Does_not_contain` (Does not contain), `Begins_with` (Begins with), `Ends_with` (Ends with), `Is_less_than` (Is less than), `Is_greater_than` (Is greater than), `Is_on` (Is on), `Is_before` (Is before), `Is_after` (Is after), `Is_not_NULL` (Is not null).
- Filter value (`filter_value`, text): The value to compare with. Not needed for Is not null.
- Sort (`sort`, text): The field to sort by: a field ID such as `Field1`, or `EntryId` or `DateCreated`. Wufoo's default order is oldest first.
- Sort direction (`sort_direction`, text): Which way to sort. Only used with Sort. One of: `ascending`, `descending`.
- Page start (`page_start`, number): How many entries to skip, for reading past the first page. At least 0.
- Page size (`page_size`, number): Entries to return, up to 100. Wufoo's default is 25. From 1 to 100.
- Include system fields (`include_system_fields`, true/false): Also return Wufoo's own fields, such as the sender's IP address, payment status and whether the entry was completed.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "Entries": [
      {
        "CreatedBy": "example",
        "DateCreated": "example",
        "DateUpdated": "example",
        "EntryId": "example",
        "Field1": "example",
        "UpdatedBy": "example"
      }
    ]
  }
}
```

### List form fields

List a form's fields with their IDs (Field1, Field2 and so on), questions and choices. Entries name their answers by these IDs.

**Inputs**

- Form (`form`, text, required): The form: pick one, or give its permanent ID (hash) or URL name.
- Include system fields (`include_system_fields`, true/false): Also return Wufoo's own fields, such as the sender's IP address, payment status and whether the entry was completed.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "Fields": [
      {
        "Choices": [
          {
            "Label": "example",
            "Score": 1
          }
        ],
        "ClassNames": "example",
        "DefaultVal": "example",
        "HasOtherField": true,
        "ID": "example",
        "Instructions": "example",
        "IsRequired": "example",
        "Page": "example",
        "SubFields": [
          {
            "DefaultVal": "example",
            "ID": "example",
            "Label": "example"
          }
        ],
        "Title": "example",
        "Type": "example"
      }
    ]
  }
}
```

### List forms

List the forms in the Wufoo account that the API key can see.

**Inputs**

- Include today count (`include_today_count`, true/false): Also return how many entries each form has had today.
- Page (`page`, number): Which page of forms to return, starting at 1. At least 1.
- Limit (`limit`, number): Forms per page, up to 1,000. Wufoo's default is 1,000. From 1 to 1000.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "Forms": [
      {
        "DateCreated": "example",
        "DateUpdated": "example",
        "Description": "example",
        "Email": "example",
        "EndDate": "example",
        "EntryCountToday": "example",
        "EntryLimit": "example",
        "Hash": "example",
        "IsPublic": "example",
        "Language": "example",
        "LinkEntries": "example",
        "LinkEntriesCount": "example",
        "LinkFields": "example",
        "Name": "example",
        "RedirectMessage": "example",
        "StartDate": "example",
        "Url": "example"
      }
    ]
  }
}
```

### List report entries

List the entries a report shows. Answers are keyed by field ID.

**Inputs**

- Report (`report`, text, required): The report: pick one, or give its permanent ID (hash) or URL name.
- Include system fields (`include_system_fields`, true/false): Also return Wufoo's own fields, such as the sender's IP address, payment status and whether the entry was completed.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "Entries": [
      {
        "CreatedBy": "example",
        "DateCreated": "example",
        "DateUpdated": "example",
        "EntryId": "example",
        "Field1": "example",
        "UpdatedBy": "example"
      }
    ]
  }
}
```

### List reports

List the reports in the Wufoo account.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "Reports": [
      {
        "DateCreated": "example",
        "DateUpdated": "example",
        "Description": "example",
        "Hash": "example",
        "IsPublic": "example",
        "LinkEntries": "example",
        "LinkEntriesCount": "example",
        "LinkFields": "example",
        "LinkWidgets": "example",
        "Name": "example",
        "Url": "example"
      }
    ]
  }
}
```

### Submit a form entry

Add an entry to a form, as if someone had filled it in. Wufoo checks it like a real submission and runs the form's notifications.

**Inputs**

- Form (`form`, text, required): The form: pick one, or give its permanent ID (hash) or URL name.
- Field values (`field_values`, object, required): Each answer under its field ID, such as `Field1` for the first field (List form fields gives them). Give dates as YYYYMMDD. An answer left empty is skipped.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "EntryId": 1,
    "EntryLink": "example",
    "RedirectUrl": "example",
    "Success": 1
  }
}
```
