Filling two dropdown menus with data from API

Actions & Logic

Hello,
I have an API that returns a Json with the following structure:

{
  "error": false,
  "msg": "product: 'name,code,options' have been retrieved",
  "data": [
	{
	  "name": "Name 1",
	  "code": "111111",
	  "options": [
		"Op1",
		"Op2",
		"Op3",
		"Op4"
	  ]
	},
	{
	  "name": "Name 2",
		"code": "222222",
		"options": [
		  "Option 1",
		  "Option 2",
		  "Option 3",
		  "Option 4",
		  "Option 5"
	  ]
	},
	{
	  "name": "Name 3",
		"code": "333333",
		"options": [
		  "Opt A",
		  "Opt B",
		  "Opt C",
	  ]
	},
	{
	.
	.
	.
	and so on

With this data I need to fill the options of two dropdown menus.ย 
The first dropdown with the names, and the second with the options that correspond to the name selected in the first.

I manage to fill the first one, but the second one, which depends on what is selected in the first one, I have not been able to do it.

I'm not a programmer, so I would be grateful if you could detail the process in case I need any specific function.

I appreciate your help.

What have you tried so far?
Did you check FlutterFlow's Documentation for this topic?
Yes
1
4 replies