Hi, i don't remenber where i found this modification, so i will post all the instruction here.
Whit this when one field is incorectly will appear one poup message, that tell they is an error and to check all the field.
On my sites work, so i hope work also for you. Here the modification you have to do :
Always make a backup of any file before you change it. This change doesn't cause problems to the default installation,
if you have customized your installation join process, this may not work so use at your own risk.
1. To make the alert popup for errors when a user tries to submit an invalid join form do the following:
Open inc/js/join.js
Find the following code snippet around line 59:
if( bHaveErrors )
doShowError( eForm, 'do_submit', 0, _t('_Errors in join form') );
else
eForm.submit();
replace with
// Old java, changed out to show the error.
// if( bHaveErrors )
// doShowError( eForm, 'do_submit', 0, _t('_Errors in join form') );
// else
// eForm.submit();
if( !bHaveErrors )
eForm.submit();
if( bHaveErrors )
alert('Alert: There are errors in your profile entries, please correct the fields marked by a red ! next to it.');
Save and upload.
2. To make the alert popup for errors hwen a user tries to edit their profile and leave out a required field do the following:
open inc/js/pedit.js
Find the following code around line 46:
if( !bHaveErrors )
eForm.submit();
Replace it with the following:
if( !bHaveErrors )
eForm.submit();
if( bHaveErrors )
alert('Alert: There are errors in your profile entries, please correct the fields marked by a red ! next to it.'
Save and upload.
3. Now Log into your adminitration homepage and press the clear css/js link to clear out your js cache.
To change the default error message, simply change the text next to Alert:
Changes were inspired by gracey.
...