I have a PeoplePicker control that I have disabled by rule because I am populating it via jQuery based on a selection in a drop down list. I am using the NF.peoplePickerApi to set the value, which works fine. However, if I change the value of the drop down list, the field does not clear and I get more than one name in the field which causes an error. If the field is NOT disabled, the code works properly but I need the field disabled so it isn't modified manually by a user.
Is it by design that the clear method doesn't work if the field is read only? Is there another way to clear the field?
how do you disable it? by a control's appearance setting or by a formatting rule?
I would recommend to use rule.
furthermore, do not apply the rule directly on control but rather place control into a panel and apply rule to the panel.
var PersonControl = new NF.PeoplePickerApi("#"+TheseUsers);