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
Sandeep DineshSandeep Dinesh 

Visualforce Override page not showing when creating new record from a lookup

I have a custom object that has a Visualforce page override for View, Edit, and New. When creating new standalone versions of that object, the visualforce page works fine.

However, if I am creating that object via a lookup on another object, the standard page shows up instead! It also shows up in a modal window instead of a new window.

I feel this modal window is the issue. How do I force the new object creation from a lookup use the visualforce page instead of the default page?
WEN JIEWEN JIE
Hi Sandeep,

Please check "Buttons, Links, and Actions" section for your sobject.

Thanks.
Sandeep DineshSandeep Dinesh
I think the "Buttons, Links, and Actions" are all set correctly. Everything works fine when creating a record standalone.

Buttons, Links, and Actions

It is only when creating a record from another object via a lookup where things don't work

Lookup
Sandeep DineshSandeep Dinesh
Doing some more searching, it is possible the Summer 20 release broke this functionality: https://trailblazer.salesforce.com/ideaView?id=0873A000000TvUBQA0
WEN JIEWEN JIE
Hi Sandeep,

You are right. And not sure when SFDC coudl slove this problem...