Adding files to a list box with Browse

Manny shared this question 6 years ago
Answered

I am using a list box and when I add the 'Browse' button I want my files to appear in the list box. I am having a little difficulty doing that. What is the best way to accomplish this. So it might be that I need to add 3 or 4 files into the list box. Sort of like an email attachment. Thank you.

Comments (3)

photo
1

I'm afraid the 'browse' input is a bit dummy for now. It just simulates the selection of files but you can't upload real files into your prototype.

photo
1

Hi Victor,


Thanks for the reply. Sorry I didn't mean that I want the actual file to appear there I want to see if it is possible to do the 'Browse' feature 3 times (click on browse 3 times) so that all 3 times the names of the files appear in the listbox one at a time. Right now I can click on the browse once and then the file goes in the list box but if I have 3 files how do I save the first file in the list box and then add an additional 2 more files so all 3 files will show in the list box.


Thanks again!!

photo
1

Have you tried to define an 'on change' event on the 'browse' input so that it triggers a set value action on the list box and then, as the value, define a calculated expression like this?


(list box (all values)) + data (browse input)