You need to sign in to do that
Don't have an account?
Patricia Lim
How to <apex:inputField> with a master-detail relationship?
Hi all. I am creating an <apex:form> with one of the fields being a master-detail relationship that looks up the parent in the UI field. When I add this to my form, it does not appear on the VF page - what am I missing here?
Code:
Code:
<apex:page standardController="Scholarship_Award__c"> <h1>2020-2021 Academic Year</h1> <apex:form > <!-- Hi --> <apex:pageBlock title="Add Scholarship Awards"> <apex:pageBlockSection columns="2"> <apex:inputField value="{!Scholarship_Award__c.Name}"/> <apex:inputField value="{!Scholarship_Award__c.Year__c}"/> </apex:pageBlockSection> <apex:pageBlockButtons > <apex:commandButton action="{!save}" value="Save"/> </apex:pageBlockButtons> </apex:pageBlock> </apex:form> </apex:page>
Do you see any difference in the FLS set for these two fields in this Object?
Can you append a record Id that has a name field populated to the VF page and see if it displays any value?
https://Salesforce_instance/apex/HelloWorld2?id=001D000000IRt53
Also, can you run the below query, please?