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

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 


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



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