Conditional visibility based on text within ChatGPT streamed response

Actions & Logic

I'm trying to set a button to display only once a particular word ("buy") is present within (ListView) dynamically-generated streamed chat responses from ChatGPT.

What have you tried so far?

I have set the word ("buy") as a local page state variable (string) and attempted to set a conditional value (if/then/else) if my Supabase row contains the word "buy", however I get error "current variable is not valid".

I have also tried setting the word "buy" as a page parameter and setting the conditional value on this - same error.

Any ideas?

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