beforeSend

fires before a form is sent to the server

boolean beforeSend(){ ... };

Returns

booleantrue/false, to allow/forbid a form sending to the server

Example

form.events.on("BeforeSend", function(){
   // your logic here
   return true;
});

Details

The event is blockable. Return false to prevent a form sending to the server.

See also
Change log

added in v6.1

Back to top