jQuery UI Widgets Forums Editors DateTimeInput validate with required impossible?


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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • validate with required impossible? #14293


    if i try to validate a jqxdatetimeinput with a validator like this:

    rules: [
    { input: ‘#jqxdatetimeinput’, message: ‘Date is required!’, action: ‘valuechanged’, rule: ‘required’ }

    it never ever will validate sucessfull. Even when a correct date is inserted.

    Also the method xxxx.jqxValidator(‘validate’) don’t works.

    Any idears?


    • This topic was modified 11 years, 5 months ago by  UJanke.
    validate with required impossible? #14295

    Peter Stoev

    Hi Uwe,

    ‘required’ validation rule can be used for empty input fields. jqxDateTimeInput always has a value, so that rule cannot be used with that widget. In addition, your “action” is “valuechanged” so the rule will be tested after the jqxDateTimeInput’s value is changed.

    For validation, see: defaultfunctionality.htm.

    The demo demonstrates that the ‘validate’ method works, too.

    Best Regards,
    Peter Stoev

    jQWidgets Team

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

You must be logged in to reply to this topic.