I am populating a lookup field via javascript on page load. The field has a display template in Skuid, such that it should show an alternative field’s value (from the target/looked-up record), not the record’s “Name” field. E.g., instead of showing the autogenerated standard “record number/name” field, it should show a formula field that is more useful for users. Great stuff.
This displays fine for records that have already been created. It also works fine if you manually lookup a record. However, when creating a new record, when I populate that field with the ID of the looked-up record via javascript on page load, it displays only the ID of the looked-up record in my lookup field, not what should display according to the display template.
How do I make my code populate the lookup but also display according to the template?
Question
populating a lookup field with javascript that has a display template
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.