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
Bob_zBob_z 

Traversing related child fields from the account object

I have a visualforce page and the standard object is the Account. I'm trying to map a field from the related child record to the account visualforce page.

I'm not sure how to map the field {!Account.Bids_Sent__c.Test__c} on the visualforce page. 

 I am getting the following error.

Error: Invalid field Bids_Sent__c for SObject Account
 
Deepali KulshresthaDeepali Kulshrestha
Hi Bob,
 
Greetings to you!

I have practiced it in my org.
<apex:form id="frm">
        <apex:repeat value="{!AccountList}" var="a">
            <apex:repeat value="{!a.Bids_Sent__r}" var="ab">
                <p>{!ab.Test__c}</p>
            </apex:repeat>
        </apex:repeat>
    </apex:form>
           
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha