I want to create the lookup field in the homepage slide bar, like below

Order name : text field
Opportunity : Lookup field
Submit Button

How to create the lookup field and create the record when click the submit button using java script.

  • 1
    If you are good with Visualforce, and if your org is on summer14 already you should be able to create a visualforce sidebar component. You do not need javascript to do this.
    – Rao
    Jun 24, 2014 at 13:21

1 Answer 1


Insert a sidebar VF page which does all the work for you.

Here is the link to a blog from Bob Buzzard which may prove useful.


Here is the link to a blog from Jeff Douglas.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .