Clean column type Person or Group

  • 17 October 2016
  • 5 replies
  • 1 view

Badge +6

Hello Guys,

Could you please give me some tips to clear up a column "type" Person or Group if a yes/no control is active?

How can I delete an approver from my column by clicking  my Yes/ No control?

This is the normal process when the approval name is needed.

193313_pastedImage_1.png

In this case I have an approval already, so what I need is clear the approver by clicking my Yes/No control.

193314_pastedImage_2.png

Thank you guys.


5 replies

Userlevel 5
Badge +14

following should do the trick

var ppobj = new NF.PeoplePickerApi('#'+PP);
ppobj.clear();

see  

Badge +6

Hello Marian,

Thanks for your answer, shame on me, to be honest I don’t have a lot of knowledge on Nintex, could you please give me more details about this, I mean where should I declare the code.

Thanks

Walter Fuentes

Userlevel 5
Badge +14

since you want to trigger the clear on checkbox change, you have to define (on)change event handler for that checkbox control.

these kind of handlers are typically being attcahed in ready() or RegisterAfterReady() events.

you can place all the handling javascript code into form settings/custom javascript section or place it into separate script file and include the file within form settings/adanced section

Badge +6

Hello Marian Hatala

Thank you very much for the extra help you gave me, my problem has been fixed happy.png

Userlevel 5
Badge +14

that's great!

set the question answered.

Reply