How to get id value on selected spinner from json

Hello, i have shown spinner elemen from json response
here is the API link https://dev.farizdotid.com/api/daerahindonesia/provinsi
and this is the output


how to get “id” value on selected element of spinner from json and display on label


for example, if select the value “South Sumatra” from the spinner then the label displays the id of “South Sumatra” which is 16
Here is my block

Select item from list id and index is spinner selection index

blocks (35)

Or

3 Likes

it worked, thank you very much! :grinning:

1 Like

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