AnsweredAssumed Answered

Legacy People picker control validation

Question asked by shrinivasnaik on Jul 27, 2016
Latest reply on Feb 21, 2017 by shrinivasnaik

Hi All,


I am using Legacy people picker control which I had to use as it allows the business to see all the users in the group and then select rather than just type and check if the user is available (as in the newer people picker control).


I am trying to do a validation to trigger exception if the people picker is empty, but I see that if the control is modified it looses its value. A little detail ..


Validation query

(!NWF$('#' + varAppSAssigned).val().trim().match(/./)) { alert('please enter .... '); return false; }

where varAppSAssigned is the legacy people control Javascript value configured in the control.


1] When the control is blank initially, the above exception does work and the message pops up.

2] If you just select the user and manually delete it, then the above script does not work that may be due to the fact that "varAppSAssigned" wasnt refreshed with the new value?


Has anyone noticed this, any pointers on how to use validation on Legacy people picker control?