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
Krishna_Krishna_ 

"'contact' is not a valid child relationship name for entity Visualforce Page"

Hi to all,

I am creating sample Visual force page.like this..

 

<apex:page standardController="Contact">
    <apex:form >
        <apex:pageBlock >
            <apex:pageBlockButtons >
                <apex:commandButton action="{!Save}" value="Save"/>
            </apex:pageBlockButtons>
            <apex:pageBlockSection >
                <apex:pageBlockSectionItem >
                    <apex:outputLabel id="lastname" value="Last Name" for="Visual">
                    </apex:outputLabel>
                    <apex:inputText value="{!contact.lastname}" />
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
    <apex:listViews type="Contact"/>
    <apex:relatedList id="contact1" list="contact" />
</apex:page>

 

This visual page is working fine..

But i am using SITES page, It show the following error Message.

"'contact' is not a valid child relationship name for entity Visualforce Page"

how to rectify and how to use that page in SITES ????

 

thanks,

krishna.

 

Best Answer chosen by Admin (Salesforce Developers) 
wesnoltewesnolte

Hey

 

Are you sure that the Sites profile(i.e. the public access settings) are read for teh contact object? These settings are available from clicking on the Site name.

 

Cheers,

Wes

All Answers

wesnoltewesnolte

Hey

 

Are you sure that the Sites profile(i.e. the public access settings) are read for teh contact object? These settings are available from clicking on the Site name.

 

Cheers,

Wes

This was selected as the best answer
Krishna_Krishna_
thanks wesnolte