Customization of File Upload widget

210 views
Skip to first unread message

michael...@zodiac.com

unread,
Jul 15, 2014, 6:20:22 PM7/15/14
to suppor...@runmyprocess.com
Hello RMP Gurus -

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

Bilal Ajaj

unread,
Jul 17, 2014, 5:23:29 AM7/17/14
to suppor...@runmyprocess.com, michael...@zodiac.com
Hello Michael,

There is no function in RMP allowing you to catch an upload event. But you can use jquery by catching the change event : $(id_file_widget).change(function(){})

When a file is uploaded, you can get the description from the text field and the file id using the getValue() function on the file upload widget.

Then you can combine both of them and stock them in a hidden field that can be updated every time a change event is caught.

Does this solution suit you ?

Best regards,

Bilal
Reply all
Reply to author
Forward
0 new messages