Hello everyone!
On a field I have this dataEvent:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
dataEvents: [{type: 'focusout', fn: function(e) { var input = this.value; if ( input != "" ) { $.getJSON('.../my_query.php?op=4&mail='+this.value, function(result) { elem = document.getElementById("user_email"); if (result) elem.setCustomValidity('Mail is already used!'); else elem.setCustomValidity(''); elem.reportValidity(); }); } } }] |
but I’d like to execute that check only when I am in add mode…. is that possible?… Thanks!
Cheers!
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top