As I'm using ajax validation, think that didn't exist when this topic started, this solution was partially helpful.
The problem is that the loading gif appears onsubmit (click) even if the form didn't validated and files didn't start uploading…
As I'm using jQuery, this example is done with jQuery and one page form. Will make some tests for multi-page forms or if somebody get how to obtain the variable, please post it.
EDIT: Multipage variable added
Add a Free Text field, and put this code inside:
<div id="loading" style="display: none;">
Please wait, we are uploading the files <br />
<img src="[CHANGE_THIS_TO_YOUR_PATH]/ajax-loader.gif" alt="" />
</div>
<script type="text/javascript">
/* <![CDATA[ */
jQuery(document).ready(function() {
var formId = jQuery('form input[name="form[formId]"]').val(),
form = rsfp_getForm(formId),
page = '{page}';
jQuery('#Submit').click( function () {
var Valid = ajaxValidation(form, page);
if (Valid) {
jQuery('#loading').css('display','block');
}
});
});
/* ]]> */
</script>
You can make your own loading gif and change style params for it, however, you need one gif for this example, use the link provided in the first answer.
Hope not missing something....