Mohith Devatte
Tera Sage

Hello , 

Instead of current and previous object please use g_form object.

Curent and previous  -- > Used in server side

g_form-->used in client side

var new = g_form.getValue('assignment_group'); //to get the new value

var old  = oldValue;

just replace these lines and try 

please accept this solution if this helps you