API response not showing in text widget despite successful call

Database & APIs

Hi, I’ve created an API call that returns product_name for a scanned barcode (like B16175). I created a productname page state variable and tried both Action Output and Page State to bind the response. But it’s still not showing in a text widget or snackbar. I’ve confirmed the API works via Test Call. Can someone review my action flow or point out what I may have missed?

What have you tried so far?

I followed step-by-step guidance from ChatGPT to build the logic. I created a page state variable productname, and set up the API call (GetProductDetails) to trigger when the barcode length is 6. I used a Conditional Action to check API success, then updated productname using the response (product_name from JSON path).

I also:

  • Added a snackbar and a text widget to display productname

  • Verified the API returns correct data in the Test tab

  • Tried both Action Output binding and Page State binding

  • Confirmed the API URL and JSON path ($.product_name) are correct

Still, the UI shows no response. I'm unsure if the API is not being triggered or if the binding is failing.

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