I have a DocumentBuilder page with custom TextField components (FormQuestionChild, FormQuestionChild2) that wrap a custom TextField component which wraps a native Input widget.
I need the typed values to be stored in App State variables (coreProblem, targetAudience) so that when the Generate button is tapped, those values are passed as a prompt to the Claude API via a Backend Call action.
The API works correctly in test. The action chain on Generate reads the prompt from a Text Combination of coreProblem + targetAudience App State variables. But these variables are always empty when Generate is tapped because the TextFields never save their values to App State.
The TextField component has an onChange String parameter but it's not a real callback β it doesn't trigger any action when the user types.
Question: What is the correct way to read the typed value from a custom TextField component and save it to App State either on change or at the moment a button is tapped?
FlutterFlow version: latest. No Firebase β direct API call.