jQWidgets Forums

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 11 years, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Validation issues #47737

    Yogesh Singh
    Participant

    Hi

    I am validating popwindow on button click and the length validation fires even the textbox is blank making it as a requiredfield it should be showing message if user enter characters falling less or more than the range specified
    Sometimes the validation gets fired even i am pressing different button which doesnt invoke validator

    $(“#btnSearch”).bind(‘click’, function () {
    if ($(‘#popupWindow’).jqxValidator(‘validate’))
    });

    $(‘#popupWindow’).jqxValidator({
    rules: [
    { input: ‘#txtName’, message: ‘Name must contain only letters!’, action: ‘keyup’, rule: ‘notNumber’ },
    { input: ‘#txtName’, message: ‘Name must have minimum of 3 characters!’, action: ‘blurr’, rule: ‘length=3,50’ }
    ]
    });

    Is there a way to evaluate values of two fields and based on that a validation rule can be set and position the message some place else and not beside the contol

    Validation issues #47739

    Peter Stoev
    Keymaster

    Hi Yogesh Singh,

    The Validator supports 2 types of hints – tooltips and labels. Examples: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxvalidator/defaultfunctionality.htm?arctic and http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxvalidator/validation-label.htm?arctic

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Validation issues #47740

    Yogesh Singh
    Participant

    thanks for the reply Peter
    but when i click button the rule with length validation displays shouldnt it be displaying when user is typein something in the textbox and not when user hasnt enetered any text to validate

    Validation issues #47743

    Peter Stoev
    Keymaster

    Hi Yogesh Singh,

    There is a typo in the provided code. “action” set to “blurr” is invalid. It should be “blur”.

    Best Regards,
    Peter Stoev

    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.