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?
API response not showing in text widget despite successful call
Database & APIs
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 updatedproductnameusing the response (product_namefrom JSON path).I also:
Added a snackbar and a text widget to display
productnameVerified 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 correctStill, the UI shows no response. I'm unsure if the API is not being triggered or if the binding is failing.
No
1