Issue with Custom Action in FlutterFlow: Result Not Updating outputTextField

Actions & Logic

Description of the Problem

I am attempting to create a FlutterFlow process where:

A user enters text into inputTextField.

When a button is clicked:

The text is passed to a Custom Action (a placeholder for future encryption logic).

The Custom Action processes the input and returns a modified string.

The modified string is displayed in outputTextField.

However:

The process does not work as expected.

The outputTextField remains empty, even though:

The inputTextField contains valid input.

The Custom Action is correctly defined and bound to the button's action flow.

Custom Action Code

Here is the code for my Custom Action:

Future<String> placeholderEncryption(String? inputText) async {

if (inputText == null || inputText.isEmpty) {

return "No input provided";

}

return "$inputText (Processed)";

}

The action has one argument, inputText, which is bound to the value of inputTextField.

Action Flow Setup

Here is the sequence of actions in the button's action flow:

Custom Action:

Name: placeholderEncryption.

Argument inputText: Bound to Widget State > inputTextField.

Set Form Field:

Target: outputTextField.

Value: Bound to Action Outputs > Result of placeholderEncryption.

Observed Behavior

When the button is clicked:

inputTextField contains the correct input.

outputTextField remains empty.

I verified that the Custom Action is executed without errors (no warnings or crashes in the UI).

Debugging indicates that the value returned by placeholderEncryption is not applied to outputTextField.

Expected Behavior

The outputTextField should display the processed result, e.g., "Hello (Processed)", after the button is clicked.

Steps to Reproduce

Add two TextField widgets:

inputTextField (for user input).

outputTextField (to display the result).

Add a button to trigger the action flow.

Create the Custom Action with the above code.

Configure the button’s action flow as follows:

First, call the Custom Action.

Then, use Set Form Field to set outputTextField to the result of the custom action.

Troubleshooting Steps Tried

Verified that inputTextField contains the correct value during execution.

Confirmed that the action flow is configured as described.

Temporarily bypassed the custom action:

Directly set outputTextField to inputTextField.value. This works as expected.

Refreshed the project and redeployed the custom action.

Checked for typos and argument mismatches in the custom action definition.

Request for Help

Is this a known issue with FlutterFlow’s handling of Custom Actions?

Is there a specific configuration I might have missed for ensuring the output of a custom action is applied to a form field?

Can you suggest a solution or workaround to make this process functional?

Supporting Information

FlutterFlow Plan: Standard

Browser/Environment: Chrome, FlutterFlow Preview,

Additional windows 11 latest version all updated. 64Mb RAM and ample disk space with Processor 13th Gen Intel(R) Core(TM) i9-13900KF, 3000 Mhz, 24 Core(s), 32 Logical Processor(s).

All help, advice or assistance gratefully received. Thank you.

What have you tried so far?

Troubleshooting Steps Tried

Verified that inputTextField contains the correct value during execution.

Confirmed that the action flow is configured as described.

Temporarily bypassed the custom action:

Directly set outputTextField to inputTextField.value. This works as expected.

Refreshed the project and redeployed the custom action.

Checked for typos and argument mismatches in the custom action definition.

Did you check FlutterFlow's Documentation for this topic?
Yes
2