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

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.


My config for the drop down


The options showing empty


After selecting an option

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

{
    "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": []
            }
        }
    ]
}

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

1 Like

‘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?..

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

1 Like

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

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