What I'm trying to do seems like a simple concept, but I've been having a terrible time of it. I just want to capture how many documents were uploaded on my Form. To clarify, I have a single File Upload field, which allows multiple uploads, and I want to know how many the user uploaded.
I've been trying variations of this script:
$('.Submit').click(function() { var fileCount = $('.files .file').length*1; $('.fileCount input').val(fileCount).change(); });
The problem I'm having with that is what event I need to tie it to. Attaching it to the Submit button (so that it calculates when the person is done with the form) causes it to not get picked up in time to carry through to my workflow (which is the next step in my process). I have not been able to get a reliable trigger for "when upload table changes" to use that.
Is there an easier way, or does anyone have a suggestion for how I might get this data?