I was wondering if there is a way to display an image that a user uploads before the form has been submitted?
Discussion posts and replies are publicly visible
I tried, but still not working, would you like to more explain using any function ?
Documents in Appian are only available AFTER a submit action. There is no supported way around.
What stefan said is correct. There is no workaround without a user click.
However, there is a reasonable workaround if you're willing to make the user click something. When a new upload exists, add a submit button or submit link next to the upload field, saying "click to preview", or something along those lines - this will submit the form, allow the file to be promoted to the Appian FS, and transparently loop back to the same form (to the user's experience, it will not seem like they "left" the form, if things are configured correctly). After the task is loaded again, the file will be eligible to be shown in the normal image field as desired.
© 2023 Appian. All rights reserved.