I’m trying to set the value from INSIDE of a text element (which is a number that results from a formula) to a custom state - FINAL PRICE STATE (number). What is going on here?!
I’ve tried to put the “value” (which should be a number) of that text directly into “create a thing” but it didn’t work out so that’s why I craeted a custom state.
Hard to say without more info, but you don’t seem to be converting the text back to a number (using the ":converted to number"expression) which if you do, you can formula result right into the new “thing”
@adig can you provide little more context to understand the problem better? If you want, we can jump on a quick google meet call and guide/help you through it.
I cannot call that text element and input it dynamically after “='“ to populate that DB field.
I tried to set a “number” state on that text element to save the value from inside that text in pic 1 as a number and then put it in booked_total_amount_usd but when I try to set the state, again I cannot call that “text’ to get the value.
Well, as I said.. Text Elements do NOT hold accessible values (they only display text) so you can’t refer to the ‘value’ of a text element elsewhere.
So, you either need to use the same expression wherever else you need it or (preferably) store the value somewhere else (i.e. in a Group Data variable) and then use that wherever you need to display it or use it.
thanks @adamhholmes I cannot put the value in booked_total_amount_usd because that value is dynamic - it depends on another state and I cannot condition it into “make changes to a thing”. however, the one in the text field is correct because it’s calculated depending on that state.
What’s the other option? What is a group data variable?!