Skip to content
Advertisement

Populate Dropdown from Zoho Response

I am trying to populate a dropdown from the ZOHO API response I am getting with my request. I have two files. request.php and zoho.php.

I am receiving the response from request.php as below.

JavaScript

in order to get the result I am decoding the object as below

JavaScript

I am having a popup in zoho.php.

JavaScript

The way I am looping the data I have received is below. I am trying to get as the way how we populate a dropdown from SQL which is a string and zoho’s case its an array. Where I am making the mistake?

Advertisement

Answer

The above answer gave me an idea to loop through the result on zoho.php itself and get the value to dropdown HTML.

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement