who can help me with this script because when I add it to the file client_ssdi_oppo.js it does not work

MC_AUTO_onchange("oppo_primarycompanyid",'if(MC_edit()){MC_AUTO_AffectValues("oppo_note", cn(ValuesSrv("comp_codecomptable")));};');;