Conditional Actions: Add a Check for API Call JSON Path

Actions & Logic

I have an API call that returns a list of objects, with each object having the following fields: id, name and status. All the name are used to populate a DropDown. I want to add an action that checks if the selected dropdown value has associated status = inactive.

So say a user selected 'John' from the dropdown, and the object from the API call that has name = 'John' also has status = 'active'. I want to navigate the user to a certain page. However if 'John' had status = 'inactive' then I want to navigate the user to a different page.

FlutterFlow's conditional check seems to only allow me to take the widget state itself, but not the associated status of the widget state value. Is there a way to do that without using Custom Functions?

What have you tried so far?

See description and screenshot.

Did you check FlutterFlow's Documentation for this topic?
No
3
3 replies