# Sending a POST request to a form with list field (GF REST API) \[RESOLVED\]

**URL:** <https://community.gravityforms.com/t/sending-a-post-request-to-a-form-with-list-field-gf-rest-api-resolved/10942>\
**Category:** Get Help\
**Tags:** list-field, gfapi, rest-api, vuejs\
**Created:** [October 16, 2021, 4:46pm UTC](https://community.gravityforms.com/t/sending-a-post-request-to-a-form-with-list-field-gf-rest-api-resolved/10942 "2021-10-16T16:46:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![user5a8c75f7bef475.7](https://avatars.discourse-cdn.com/v4/letter/u/5fc32e/32.png) [@user5a8c75f7bef475.7](https://community.gravityforms.com/u/user5a8c75f7bef475.7)\
**Post date:** [October 16, 2021, 4:46pm UTC](https://community.gravityforms.com/t/sending-a-post-request-to-a-form-with-list-field-gf-rest-api-resolved/10942/1 "2021-10-16T16:46:16Z")

</div>

I’m building different forms with Vue and gravity forms. Everything has been working well so far. However, right now I would like to us the list field to submit different inputs programmatically but I’ve been failing to do so.

This is my field right now:

```auto
"fields": [
        {
            "type": "list",
            "id": 4,
            "formId": 3,
            "label": "Available Days & Time",
            "adminLabel": "",
            "isRequired": false,
            "size": "large",
            "errorMessage": "",
            "visibility": "visible",
            "inputs": null,
            "description": "",
            "allowsPrepopulate": false,
            "inputMask": false,
            "inputMaskValue": "",
            "inputMaskIsCustom": false,
            "maxLength": "",
            "inputType": "",
            "labelPlacement": "",
            "descriptionPlacement": "",
            "subLabelPlacement": "",
            "placeholder": "",
            "cssClass": "",
            "inputName": "",
            "noDuplicates": false,
            "defaultValue": "",
            "enableAutocomplete": false,
            "autocompleteAttribute": "",
            "choices": [
                {
                    "text": "Day",
                    "value": "Day",
                    "isSelected": false,
                    "price": ""
                },
                {
                    "text": "Hours",
                    "value": "Hours",
                    "isSelected": false,
                    "price": ""
                }
            ],
            "conditionalLogic": "",
            "maxRows": 0,
            "enableColumns": true,
            "productField": "",
            "layoutGridColumnSpan": 12,
            "enableEnhancedUI": 0,
            "layoutGroupId": "b07de714",
            "multipleFiles": false,
            "maxFiles": "",
            "calculationFormula": "",
            "calculationRounding": "",
            "enableCalculation": "",
            "disableQuantity": false,
            "displayAllCategories": false,
            "useRichTextEditor": false,
            "checkboxLabel": "",
            "errors": [],
            "pageNumber": 1,
            "fields": ""
        }
    ],

```

Is a list field that supports 2 values, one is day and the other hour.

I tried sending the next JSON:

```auto
{
  "input_4_1": "Monday",
  "input_4_2": "8-10AM, 10-12AM"
}

```

and this is the response:

```auto
{
    "is_valid": false,
    "validation_messages": {
        "4": "At least one field must be filled out"
    },
    "page_number": 1,
    "source_page_number": 1
}

```

How should I compose my request to be able to submit multiple values?

---

<div class="post-metadata">

**Author:** ![user5a8c75f7bef475.7](https://avatars.discourse-cdn.com/v4/letter/u/5fc32e/32.png) [@user5a8c75f7bef475.7](https://community.gravityforms.com/u/user5a8c75f7bef475.7)\
**Post date:** [October 16, 2021, 5:17pm UTC](https://community.gravityforms.com/t/sending-a-post-request-to-a-form-with-list-field-gf-rest-api-resolved/10942/2 "2021-10-16T17:17:07Z")

</div>

In case that any body need it… Thanks to the V1 REST API documentation I found a way to summit multiple lines in the list. This is the request I’m sending now:

```auto
{
  "input_4": [
      "Monday",
      "8-10AM, 10-12AM",
      "Tuesday",
      "8-10AM, 10-12AM"
  ]
}

```

And here is the form in the dashboard:

 ![Screen Shot 2021-10-16 at 10.15.50 AM](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/4/435fd9e1033973c987f85e201eb2423d344da0c0.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [October 18, 2021, 3:26pm UTC](https://community.gravityforms.com/t/sending-a-post-request-to-a-form-with-list-field-gf-rest-api-resolved/10942/3 "2021-10-18T15:26:31Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
