Reputation: 215
Is it possible to create an autocompleted field using data from an external (non Salesforce) REST/JSON API?
I guess that if I try to do it I'll run in some same-origin policy problems. So maybe using an APEX class acting as proxy between my JS and my API?
Upvotes: 0
Views: 701
Reputation: 1331
You could use the sforce.connection.remoteFunction funciton from the ajax tookit to get the data from external servers. You will not get the same-orign policy error. And then you could use the jQuery's autocomplete plugin to achieve the auto-complete functionality
Upvotes: 2