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
marcusaureliusmarcusaurelius 

Lookup or Create New?

Does anyone have a good approach to allowing a user to:

 

1. either look up a value via a look up field 


and/or


2. create a new record that can then automatically populate the lookup field?

 

 

HarmpieHarmpie
Visual Force page with 2 conditional sections (rendered="{!booleancondition}"), 1 for looking up an existing, 1 for adding a new record.
marcusaureliusmarcusaurelius
interesting!..tx...got any code samples of such or something comparable?
HarmpieHarmpie
There's a good example in 1 of the dev501 course excercises, so I would reccommend following it. Should be something similar on the sforce.com site too I think.