How make a Query in Form_CustomValidate

onoboa wrote:

But the query return the res after the record be saved, then no validate before save the record.

Be reminded that $.get() is async. You need to use sync method so that you can get the value and validate and return true/false in the custom validate function. To use sync request, you may use $.ajax() with the async setting set to false.