I have a dashboard where I'm using the file upload field function for the us

I have a dashboard where I'm using the file upload field function for the user to select a local file and this populates a local variable. Later on in the form I have a button widget where I then take this local document value and run it through another function. Unfortunately it seems while the document variable is getting a value the document itself isn't "committed" into the Appian CMS and this document is not actually available for other functions in the same form. Is this expected behaviour or is there something else I need to do? Snippet of my SAIL code below:

=load(
local!document,
local!target: cons!MY_TEMP_FOLDER,
..
..
a!fileUploadField(
label: "Choose File",
labelPosition: "ADJACENT",
saveInto: local!document,
value: local!document,
target: local!target
)
...
...
a!buttonLayout(
primaryButtons:{
a!buttonWidget(
label:"Process",
disabled:if(isnull(local!document),true(),false()),
...

OriginalPostID-148018

OriginalPostID-148018

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data