How to create document by Text Value

Actions & Logic

Hello,

I am creating an app to record trades. On the record entry screen, I have:

  • TextField① for Purchase Price

  • TextField② for Selling Price

Users are supposed to input these values, and I calculate the profit by using a Code Expression to subtract Selling Price from Purchase Price. I then display the profit as a Text Value.

When I try to select the profit Text Value in the button's Action>Create Document>Set Field>profit>Value Source>From Variable, it does not appear in the list of options.

How can I handle this Text Value as a Variable?

What have you tried so far?

I tried inserting the result of a Code Expression calculation into the TextField and then retrieving the value from the TextField, but I encountered an error.

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