Setting form fields using actions not working

Actions & Logic

Hi, I hope someone can help here. I have a page that displays data for a specific person in my database. The data is meant to go into various form fields so that the user can edit them.

But there is a strange problem when I try to set the form field using the action on page load. If the form field is null, it won't set any of the fields below it. So if my first field, say First Name is null, then it won't set the other fields even if there is data for them in the database or page state or whatever (I have tried all of these!).

It is very much determined by the position of the action in the chain. If I move an action for a specific field up to the top of the list, it works fine. If it is below a null field, it stops working.

Any clues of what is the best way to populate a form like this?

What have you tried so far?

I have tried storing the data in various app states, page states etc. and it won't load regardless. I am using a loop to make sure there is data in the row before I set the fields.

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