# I cant figure out how to set the "Option Caption" when using the Bubble API Connector

**URL:** <https://forum.bubble.io/t/i-cant-figure-out-how-to-set-the-option-caption-when-using-the-bubble-api-connector/311286>\
**Category:** Need help\
**Created:** [March 7, 2024, 10:50pm UTC](https://forum.bubble.io/t/i-cant-figure-out-how-to-set-the-option-caption-when-using-the-bubble-api-connector/311286 "2024-03-07T22:50:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![derick.clack](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/derick.clack/32/108190_2.png) [@derick.clack](https://forum.bubble.io/u/derick.clack)\
**Post date:** [March 7, 2024, 10:50pm UTC](https://forum.bubble.io/t/i-cant-figure-out-how-to-set-the-option-caption-when-using-the-bubble-api-connector/311286/1 "2024-03-07T22:50:44Z")

</div>

I am using the Bubble API Connector Plugin to retrieve a list of Customer records. I am able to set the Types of Choices and Choices source but I simply cannot find out how to set the Option Caption based on the values returned. I know that the query is working because I have a texbox that updates when the dropdown option is selected and it is showing the correct value’s.

 ![Rtslicensing Bubble Editor 2024-03-07 11-13-08 - 1](https://us1.discourse-cdn.com/bubble/original/3X/b/7/b722a71c77cb53ea46fcd0435186586f921dc949.png)  
My config for the drop down

 ![RTSLicensing 2024-03-07 11-19-12 - 2](https://us1.discourse-cdn.com/bubble/original/3X/8/c/8c0f4a832ffa4b5e66630d44a46d8b7286e8c7d5.png)  
The options showing empty

 ![RTSLicensing 2024-03-07 15-13-29](https://us1.discourse-cdn.com/bubble/original/3X/c/1/c11656d0ad8b601880d440bdd3bca87d05c7e799.png)  
After selecting an option

This is what the json looks like that is being returned from the API

```auto
{
    "returnCode": 0,
    "returnCodeDescr": "OK",
    "customers": [
        {
            "created": "2011-07-14T19:43:37+0100",
            "manufacturerId": "1",
            "id": "100000",
            "name": "Pancake, Inc.",
            "contact": {
                "firstName": "Joe",
                "lastName": "Blow",
                "email": "Joe@usa.com",
                "phoneNumbers": [
                    {
                        "type": "mobile",
                        "number": "555-1212"
                    },
                    {
                        "type": "home",
                        "number": "555-1213"
                    }
                ]
            }
        },
        {
            "created": "2019-06-06T19:43:37+0100",
            "manufacturerId": "4",
            "id": "100102",
            "name": "OCCUS",
            "contact": {
                "firstName": "KK",
                "lastName": "Lucky",
                "email": "kk@usa.com",
                "phoneNumbers": []
            }
        },
        {
            "created": "2019-06-06T19:43:37+0100",
            "manufacturerId": "2",
            "id": "100101",
            "name": "STACK Demo Customers",
            "contact": {
                "firstName": "JJ",
                "lastName": "Lucky",
                "email": "jj@usa.com",
                "phoneNumbers": []
            }
        }
    ]
}

```

---

<div class="post-metadata">

**Author:** ![georgecollier](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/georgecollier/32/182327_2.png) [@georgecollier](https://forum.bubble.io/u/georgecollier)\
**Post date:** [March 8, 2024, 12:05am UTC](https://forum.bubble.io/t/i-cant-figure-out-how-to-set-the-option-caption-when-using-the-bubble-api-connector/311286/2 "2024-03-08T00:05:33Z")

</div>

Current option’s X should work no? e.g Current option’s name.

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [March 8, 2024, 12:35am UTC](https://forum.bubble.io/t/i-cant-figure-out-how-to-set-the-option-caption-when-using-the-bubble-api-connector/311286/3 "2024-03-08T00:35:43Z")

</div>

‘Option Caption’ is the _Text_ value that you want to display in the dropdown.

So obviously, depending on exactly what you want to do, pick an attribute from the Customer Object, that can be printed as a text, to use as the Option Caption for the Dropdown.

Again, it depends what you want to display, but probably Current Option’s Name?..

---

<div class="post-metadata">

**Author:** ![derick.clack](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/derick.clack/32/108190_2.png) [@derick.clack](https://forum.bubble.io/u/derick.clack)\
**Post date:** [March 8, 2024, 4:35pm UTC](https://forum.bubble.io/t/i-cant-figure-out-how-to-set-the-option-caption-when-using-the-bubble-api-connector/311286/4 "2024-03-08T16:35:28Z")

</div>

OMG, I cant believe it was staring me in the face all this time, I thought that “Current Option” was the heading 🤣 Thank you.

---

<div class="post-metadata">

**Author:** ![derick.clack](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/derick.clack/32/108190_2.png) [@derick.clack](https://forum.bubble.io/u/derick.clack)\
**Post date:** [March 8, 2024, 4:36pm UTC](https://forum.bubble.io/t/i-cant-figure-out-how-to-set-the-option-caption-when-using-the-bubble-api-connector/311286/5 "2024-03-08T16:36:38Z")

</div>

Thanks. Yes, that was the solution. See my response to adamholmes.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [May 16, 2024, 10:51pm UTC](https://forum.bubble.io/t/i-cant-figure-out-how-to-set-the-option-caption-when-using-the-bubble-api-connector/311286/6 "2024-05-16T22:51:06Z")

</div>

Closed on May 16, 2024, 10:51pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
