You need to sign in to do that
Don't have an account?
Doondi
Prepopulating Field Values on Related list
Hi, I wanted to know how I can prepopulate the Lookup values.
There are two custom objects (school__c and student__c) having master detail relationship to Opportunities.
This is my button code:
I want student__c also to be pre populated.
There are two custom objects (school__c and student__c) having master detail relationship to Opportunities.
This is my button code:
<button class="slds-button slds-button_neutral"> <apex:outputLink value="!URLFOR($Action.Opportunity.New,null)}"> Add </apex:outputLink> </button>When I click on add, by default I am getting only School__c as prepopulated,
I want student__c also to be pre populated.
Refert this link
https://www.topalovich.com/2012/09/create-a-custom-new-button-on-a-related-list-to-return-to-the-parent-record-after-clicking-save/
Thanks for quick response,
At this moment, I don't want to Return to parent record after click on save.(this is not my requirement)All I wanted is Prepopulate the values while creating a Opportunity
Below are some of the facts I forgt to tell in beginning.
> This button is there on School__c object(in Related List)
>If I click on Add button, School__c.Name will be prepopulated,
But
> I want Student__c.Name also to be prepopulated.
As you said I tried the code
This is the error I am getting
Invalid field Link for SObject Student__c