Adding to App Value from inside custom action

Custom Code

I have a custom action which I want to pass a FFUploadedFile and have it convert to base64 and then add the string to an App Value which is a list of strings.

Can I add to an App Value list from inside my action function? If not, can I pass the App Value list as a second parameter and have the code add the data to that? (Not sure how the code works when passing an app value as a parameter to an action - does it get a new copy of the original list or is it passed a reference to the original list? Will adding to a list in a function be scoped to just that function? or can a function update things that it's passed?)

(also, any way to get this forum to sort responses in a normal way? Latest first is insane. Such a bizarre design choice! Also unsure why an image is a required field??)

What have you tried so far?

I've tried appvaluename.listfieldname.add(string) but it's not recognised. I'm guessing it's not possible but wanted to check there wasn't some magic syntax I needed to use.

Did you check FlutterFlow's Documentation for this topic?
Yes
1 reply