Server must respond with JSON object of following structure:
{
"success": true,
"callbackArgs": {...}
}
If callbackArgs are given - they will be passed to asyncSubmitFunc function.
If submit was unsuccessful then following result will be returned
{
"success": false,
"generalError": "These Login Name and Email Address already exist in database",
"fieldErrors": {
"name": "Please enter another Login Name"
}
}
generalError will be displayed using submitErrorFunc function and error message for each field will be displayed as well.