I have People Control added to my Nintex Form. I want all the users to be cleared/removed from the field.
The control settings are as below -
var companyUsers = NWF$('#' + fldCompanyUsers).val();
However, I am just not able to clear the control of all the usesr.
Any help is appreciated.
Solved! Go to Solution.
I have already checked that article. It talks about adding the users. I could not figure out, hoe to remove the users, from it.
I tried -
NWF$('#' + fldCompanyUsers).clear();
But, this does not do the required.
read through it carefully what's the proper usage. and there is an example how to remove an user as well.
to clear all the users following should work
var varPP = new NF.PeoplePickerApi('#' + fldCompanyUsers);
That did the Job.
I was trying to mix both the statements. But puttting them seperate as given by you, has done the trick.
Thanks, I appreciate your efforts.