Dropdown elements does not set the Initial value ...

Widgets & Design

Hi, I have two dropdown elements in my page layout, the value and label list are exactly the same and they load the list without any problem.

The value for the list is read from an "On page load" supabase query action and the value to check which initial value to set is read from another "On page load" supabase query, different table.

The big problem that make me crazy is the set of the initial value.

I have the same logic for both using an if/then/else condition, attached the screenshot.

So, I check if the value of an output variable is null or not set and if it is set I would like to set the value otherwise I set the value of another output variable.

The difference between the two is only in the initial check of the second output variable.

What is happening is that the first initial value element of the page is not set and the second yes, if I swap the elements it is always the first that is not set.

I know that it is incredible but I have tried so many stupid things that you cannot imagine.

Thanks for your help!

Mirco

What have you tried so far?
  • I swap the components that contains the code, no working.

  • I duplicated the components without changing nothing else, the first element DOES NOT set the initial value, the same element duplicated is setting the initial value, I have tried to duplicate two three times and always the first element is not setting the initial value.

  • I compare the source code, it is exactly the same, except of course for the name of the variable

  • I tried to set the first element using the Set Form, it is working BUT when I save the form the Text Value is NOT Set!

  • Other stupid things without any result

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