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

How can i display the lookup before saving a record?



How do i fill/display a lookup (reference to other object filed) before i save my record in create/new mode. In display mode the lookup value is populated, no issues with my lookup.




There is no such standard functionality to give some default value in lookup field, like in other fields.  You can write a trigger  to give some record id value in lookup field when record is going to insert.


Can we display the lookup field before saving ?