Dickson
Nintex Newbie

Nintex Repeating Section issue when validating fields after row deletion

When we have a validation field inside repeating section,if we delete row and try to submit ,we wont able to validate other rows of repeating section which contains validation field.

 

Sol:That is because PageValidator of the deleted row of the page is not removed,so on submit ,javascript of Nintex tries to find field which is already deleted and end in javascript error.

So we need to add below javascript in "Custom Script" of Nintex.

 

NWF.FormFiller.Events.RegisterRepeaterRowDeleting(function

    (thisRow) {

    thisRow.find(".nf-validator-error").each(function (index,

        validator) {

        if (Page_Validators.indexOf(validator) > -1) {

            Page_Validators.splice(Page_Validators.indexOf(validator), 1);

        }

    });

});

0 Kudos
Reply