function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

javascript ajax toolkit sControl - populate lookup field

hello -

i've developed an sControl to automatically populate information on a custom object (calle CAR) from information on the the CASE object. everything is working well, except one of the fields i'm trying to populate is a lookup to another custom object (called CAR owners).

i am passing the proper ID to the lookup but it still won't take. my question is - is it even possible to update lookups from an sControl? if so, any tricks to doing so?

Hi vander,

So, what kind of behavior is the toolkit exhibiting when trying to update the lookup field? The lookup, or more properly reference, field should take a 15 or 18 character id string. Are you getting an error?
hi Dave -

thanks for the quick response. i was not using the correct Id field. Once I updated my code to the proper Id, everything works great.