jQWidgets Forums

jQuery UI Widgets Forums Plugins Validator, Drag & Drop, Sortable Message according to the rule …

This topic contains 3 replies, has 2 voices, and was last updated by  ivailo 9 years, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Message according to the rule … #72604

    coni
    Participant

    hi

    I would like to set the default message type of rule.

    So, if you would like to enter the message automatically to rule out.

    Can it?

    Thank you

    Message according to the rule … #72605

    ivailo
    Participant

    Hi coni,

    You can set action: 'focus'.

    Here is the javascript demo.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    Message according to the rule … #72616

    coni
    Participant

    hi ivailo,

    My question was wrong ^^ ;;

    If you remove the “message” under the code “Validation Failed!” A message appears.

    I do not enter the “message” value,
    “rule: required” if “Field did not enter”
    “rule: email” if “email is not a form.”
    I want you with me to the default message.

    
    $('#testForm').jqxValidator({
                   rules: [
                
                     {
                         input: '#userInput',
                         action: 'focus',
                         rule: 'required'
                
                     },
                
                     {
                         input: '#emailInput',
                         action: 'focus',
                         rule: 'email'
                
                     }],
                 });
    
    Message according to the rule … #72621

    ivailo
    Participant

    Hi coni,

    There is no property to change the default message.
    So like a workaround you can set one variable with a new message about every validated elements.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.