You need to sign in to do that
Don't have an account?
rbkrbk
New button override does not auto-populate the master detail field with the parent object
This was asked before and answered with a URL hack that does not work in Lightning.
I created a new Custom Object called “LOA Onboard”. I have overridden the New button for "LOA Onboard" with a Visualforce page that just sets a default value for the record Name so that it could be modified by a workflow rule. We have renamed the Account object to Client.
I created a Master-Detail field in LOA Onboard called Client and listed Account as the Parent. I created a new LOA Onboard record from the Related List in an Account instance. The Client field is not automatically populating with the Parent.If a revert the New button to default then auto-populate works. I am attaching the relevant screen shots. How can I rewrite the VF page to fix this?
Client Field Definition:
Visualforce Page Override:
The Override settings:
I created a new Custom Object called “LOA Onboard”. I have overridden the New button for "LOA Onboard" with a Visualforce page that just sets a default value for the record Name so that it could be modified by a workflow rule. We have renamed the Account object to Client.
I created a Master-Detail field in LOA Onboard called Client and listed Account as the Parent. I created a new LOA Onboard record from the Related List in an Account instance. The Client field is not automatically populating with the Parent.If a revert the New button to default then auto-populate works. I am attaching the relevant screen shots. How can I rewrite the VF page to fix this?
Client Field Definition:
Visualforce Page Override:
The Override settings: