Forum Post: RE: SetFieldValue not changing the value of a Lookup

  • Thread starter Thread starter ByronB
  • Start date Start date
Status
Not open for further replies.
B

ByronB

Guest
Thanks Gian I have done what you suggested using: script function onChangeDivision(form) { var relDivision = form.contactDivision.value; if (relDivision != ""){ function cb(values) { var acctMgr = values[0][0]; rbf_selectQuery("select id, name from USER where id=" + acctMgr, 1, function cback(val){ var acctMgrId = val[0][0]; var acctMgrName = val[0][1]; rbf_selectObject(acctMgrId, acctMgrName, null, 'accountManager', false); $('#accountManager_' + acctMgrId + ' span:nth-child(1) i:nth-child(1)').hide(); }); } rbf_selectQuery("select accountManager from division where id=" + relDivision, 1, cb); } } /script Everything seems to be ok via the DOM but the old Account Manager is still being saved?

Continue reading...
 
Status
Not open for further replies.
Back
Top