Thank's.
Take all your time because I stick !
I can't adapt this part Ajax part (follow support
Dupplicate Email
) with my Drop-menu !
1. Go to Properties of the field that you wish to validate. In the Validation section check the "Required" checkbox and set the Validation type to "Custom". In the code are below that appears, put the following code:
function ff_email_validation(element, message)
{
if(ff_validemail(element, message) != '') return 'Please enter an email address';
var myreturn = '';
JQuery.ajaxSetup({async:false});
JQuery.post('index.php', { option: 'com_breezingforms', ff_form: ff_processor.form, Itemid: 0, format: 'html', email: element.value }, function(data){ if( data != '1' ){ message == '' ? myreturn = 'Email exists already!' : myreturn = message; } } );
return myreturn;
}
2. Go to the Advanced properties of the field that you wish to validate. In Actionscript section set Type to Custom and Action to Change. In the code below put the following code:
function ff_email_action(element, action)
{
switch (action) {
case 'change':
JQuery('#bfEmailError').remove();
if(element.value == '') return;
var myreturn = '';
JQuery.ajaxSetup({async:false});
JQuery.post('index.php', { option: 'com_breezingforms', ff_form: ff_processor.form, Itemid: 0, format: 'html', email: element.value }, function(data){ if( data != '1' ){ myreturn = '<div class="bfError" id="bfEmailError"></div>'; } else { myreturn = ''; } } );
if(myreturn != '') { JQuery(element).after(myreturn); } else { JQuery('#bfEmailError').remove(); }
break;
default:;
} // switch
} // ff_email_action
Sorry to bother you
Regards