AnsweredAssumed Answered

javascript not repeated in Repeating section nintex

Question asked by lucylee7 on Mar 28, 2018
Latest reply on Mar 29, 2018 by N M

Hi I have a drop down list containing (A & B)


if A is selected

column 1 (single line of text) will show

column 2 (people picker) will be cleared 


else B

column 2 (people picker )will show

Column 1 (singline of text) will be blank


this is in a repeating section..


Error: this action "on change" only happened once.



NWF.FormFiller.Events.RegisterAfterReady(function () {

NWF$("#" + dropdownlist).on('change', function(){
var dropdownlistSelected = NWF$("#" + dropdownlist).attr("selected", true);

   if (dropdownlistSelected.val() == "A") {


    var xx1 = new NF.PeoplePickerApi('#' + xx);

   } else if(dropdownlist.val() == "B") {

//set blank
    NWF$("#" + Column1).val('').trigger("change").trigger("blur");