I am attempting to satisfy a requirement where every a description is provided with every file uploaded.
I presently have two widgets: a text widget and a file upload widget. I think I can use the file upload widget's validation rule script to validate that there is text in the text widget before the file is uploaded.
Then I get stuck on what/how to do the rest. I would appreciate any pointers...
- how do I keep an uploaded file's identifier and the text entered together? Is there a post-upload event that I can capture so that I can get the text and file identifier and store them somewhere (maybe in a hidden text widget)?
- can I capture a click event on any of the files listed in the file upload widget? I could use that to get the description text associated with the file and put it in the text widget.
I am comfortable with jquery and javascript - just looking for ideas, hints and suggestions on how I can do this.
Thanks in advance.
Michael