I would like to display this data in a select field, like below:
Any idea on how to configure the server connect action in order to return list with the available times formated. So far this is what I have and the formatting is not working, and when I try to bind with the select field, it is displaying undefined.
Hello,
If your API returns the values as posted above, then you can bind your values directly, no need to create a repeat with a set value step.
So bind your data directly in the select and use the data formatter to format it as you need.
The problem is that your API returns a wrong content-type of "content-type": "text/html; charset=utf-8", while your data is in JSON format. This makes the data to be string which is why you can’t use it in the select.
Luckily we have a formatter on nodeJS server model which can help you with that.
So add a setvalue step after the API step, and use {{apiTimeslots.data.parseJSON()}} as a value for it. Enable output option for it and it will be available on the front end. Bind this setvalue step data in the select and it will work fine.