Unable to Set Dropdown Value from Custom Action

Custom Code

I have integrated push notifications using FlutterFlow’s built-in support and Firebase Cloud Messaging. The app calls notification-related custom actions on startup and on app lifecycle events (resumed). While notifications are working, managing the synchronization between notifications and UI updates (like dropdown or data tables) is becoming challenging.

I want to ensure best practices for handling push notifications alongside state updates, especially for triggering UI refresh or navigation on notification taps. I have successfully updated my main.dart to call an API and update a data table based on the response. However, I have run into a new issue:

While the data table updates correctly from the API call, I am unable to change the selected value of a dropdown widget programmatically from within a custom action.

The dropdown’s selected value is controlled locally in the widget code (_model.dropDownValue and its controller), and updates made to the app state do not reflect in the dropdown selection.

Direct manipulation or setting of the dropdown value from custom actions or external calls does not seem to work due to widget state isolation.

Can someone please advise if there is a supported approach or best practice for updating or controlling FlutterFlow dropdown values directly from custom actions? If not supported, may I request this feature or guidance on recommended workarounds?

Thank you for your assistance.

What have you tried so far?
FFAppState().update(() {
          FFAppState().selectedOrganizationId = orgId;
          if (apiResponse?.succeeded ?? true) {
            FFAppState().guestQueueDatatable =
                IcallGroup.guestQueueCall.root(apiResponse?.jsonBody ?? '');
          }
        });
Did you check FlutterFlow's Documentation for this topic?
No
8 replies