custom function

Hello,

Is the call of the NotEmpty function mandatory with custom function ?

Thanks,

Bernard

In case of using the custom validation rule there is no need to use the notEmpty validation.
Here you can find a tutorial:
docs.dhtmlx.com/form__validation … tionevents

Hello,
This code is right with NotEmpty but without myvalid function isn’t call

function myvalid(value, name) {
	console.log("myvalid");
	return false;
}

function displayForm() {
	var form =
			[
				{type: "settings", position: "label-left", labelWidth: 90, inputWidth: 130},
				{type: "block", width: "auto", blockOffset: 20, list: [
						{type: "input", name: "nom", label: "Nom", value: "", validate: "myvalid,NotEmpty"}
					]}
			];
	myForm = new dhtmlXForm("myForm", form);
	myForm.attachEvent("onBeforeValidate", function (id) {
		console.log("onBeforeValidate");
		return true;
	});
	myForm.attachEvent("onValidateSuccess", function (name, value, result) {
		console.log("onValidateSuccess");
	});
	myForm.attachEvent("onValidateError", function (name, value, result) {
		console.log("onValidateError");
	});

	myForm.attachEvent("onAfterValidate", function (status) {
		console.log("onAfterValidate");
	});
}

Thanks for your answer,

Bernard