jQWidgets Forums

jQuery UI Widgets Forums Plugins Validator, Drag & Drop, Sortable validationSuccess is not fired with combobox

This topic contains 2 replies, has 2 voices, and was last updated by  Franck 11 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • Franck
    Participant

    Hi Dimitar

    The event validationSuccess is not fired when it is used with jqxcombox.
    Can you tell me what i do wrong. May be is not the right event used in the rule for combobox
    But event “change” work perfectly with the jxcombobox.

    Just an extract of my code. I have many UI on this form with 2 combobox but as long as i have rules on combobox, the validation succes is not fired when I call the jdxvalidation(“valide”).

    <form id=”formCompteClient”>
    <table id=”fccTable”>
    <tr><td colspan=”2″><div id=”fccPays”></td></tr> // Combobox Country
    …..other lines with input……
    </table>
    </form>

    <!–unit UI –>
    $(“#fccPays”).jqxComboBox({source : dfmApp.pays , search : ‘startswithignorecase’});

    <!— defines rules –>
    $(‘#formCompteClient’).jqxValidator(
    { position : “top” ,
    rules: [
    { input: ‘#fccPays’, message: “Pays à remplir”, action: ‘change , blur’,
    rule: function(input, commit){
    if($(input).val().trim() == “”) return false ; else true ;}
    }
    ]
    }) ;

    $(“#fccBtnValider”).on(“click”, function(event){
    $(“#formCompteClient”).jqxValidator(‘validate’);
    });

    $(‘#formCompteClient’).on(‘validationSuccess’, function (event){
    console.log(“validationsuccess”) ;
    }
    ) // end .


    Dimitar
    Participant

    Hello Franck,

    Please check out the example in the forum topic Combobox Validation.

    Best Regards,
    Dimitar

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


    Franck
    Participant

    Thanks Dimitar

    It works if i write like this.

    { input: ‘#fccPays input’, message: “Pays à remplir”, action: ‘change, blur’, rule: “required” }

    I have added word “input” just after “#fccPays” and i have replaced the function in rule with the word “required”

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

You must be logged in to reply to this topic.