23 Oct 2023
Link to this post
I'm having trouble setting the value of a static lookup field using javascript.
I am using the following line of code:
tpc.forms[0].new_crmaccount.set_value(crmaccount);
and when I check this value from the console I see that it is populated.
tpc.forms[0].new_crmaccount.get_value();
'account;<MYGUIDHERE>'
When I submit this form, my crm rejects the submission. Are there other properties of this lookup field I need to set when I set it programatically?