Skip to content

[Validator] how to replace default rule with custom #1114

Description

@ziven27
		$.tools.validator.fn("[required]", function($el, value) {
			if (el.is(":checkbox")) { 
				return 'Please check' + $el.attr('vali-replace'); 
			}
			return !!value?true:'Please complete'+ $el.attr('vali-replace');
		});

I wanna replace [required] like this, but I can't .
this error msg is still the default "Please complete this mandatory field." that is not what I want.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions