0

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?

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.