You need to sign in to do that
Don't have an account?
s5
Regarding Public site
Hi,
I created one public site and there lookup field is there but it is not retriving data from object.I gave profile permission and i checked fields also.Please let me know whether lookup relation is working in public site.If it is yes please tel me how i can do.
Thanks in advance.
There is no issues with lookup relationship in sites. Please share your code and some more information.
<apex:page standardController="Registration__c" extensions="RegistrationformCtrl" showHeader="false" sidebar="false" >
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection title="PROJECT INFORMATION" columns="2">
<apex:inputField value="{!Registration__c.Install_Date__c}" required="true"/>
<apex:inputField value="{!Registration__c.Type_of_Construction__c}" required="true"/>
<apex:inputField value="{!Registration__c.Product_EndUse__c}" required="true"/>
<apex:inputField value="{!Registration__c.Color__c}" required="true"/>
<apex:inputField value="{!Registration__c.Model__c}" required="true"/>
</apex:pageBlockSection>
<apex:pageBlockSection columns="2">
<apex:outputLabel ></apex:outputLabel>
<apex:commandButton action="{!save}" value="Save"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
This working fine.But in public site lookup is not working.Do i need to alter anything in this programme.Please tel me
<apex:page standardController="Registration__c" extensions="RegistrationformCtrl" showHeader="false" sidebar="false" >
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection title="PROJECT INFORMATION" columns="2">
<apex:inputField value="{!Registration__c.Install_Date__c}" required="true"/>
<apex:inputField value="{!Registration__c.Type_of_Construction__c}" required="true"/>
<apex:inputField value="{!Registration__c.Product_EndUse__c}" required="true"/>
<apex:inputField value="{!Registration__c.Color__c}" required="true"/>
<apex:inputField value="{!Registration__c.Model__c}" required="true"/>
</apex:pageBlockSection>
<apex:pageBlockSection columns="2">
<apex:outputLabel ></apex:outputLabel>
<apex:commandButton action="{!save}" value="Save"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
This is the code.Do i need to alter something in this code to give lookup access to public site