Forum Post: 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
Hi, I need to change the value of a lookup based on another fields value. The thing is we are using to hide the text box and selector etc to make the field "ReadOnly": // Making the Account Manager field Read Only var accmgrid = rbf_getFieldValue('accountManager'); $('#txtaccountManager').parent('td').hide(); $('#accountManager_' + accmgrid + ' span:nth-child(1) i:nth-child(1)').hide(); OnChange event: script function onChangeDivision(form) { var relDivision = form.contactDivision.value; if (relDivision != ""){ function cb(values) { var acctMgr = values[0][0]; //alert(acctMgr); rbf_setFieldValue('accountManager', acctMgr); } rbf_selectQuery("select accountManager from division where id=" + relDivision, 1, cb); } } /script Why wont the setfieldvalue set? What other way could i possibly achieve this? We do not want the users to set this value at all.

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