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") {
//column2
var xx1 = new NF.PeoplePickerApi('#' + xx);
xx1.clear();
} else if(dropdownlist.val() == "B") {
//set blank
NWF$("#" + Column1).val('').trigger("change").trigger("blur");
}
});
});