You need to sign in to do that
Don't have an account?
Page preview screen different than live view
All - I created a wizard in visual force on a page called opptyStep1. I then assigned this page as the homepage on my site.
Here's the issue: the preview screen of the page looks perfect but when I click on the site, two of the fields are not showing correctly: one is supposed to be a dropdown menu (Investment Strategy), the other a checkbox (active__c). The check box doesnt even show. Any ideas? The code is below
<apex:page sidebar="false" standardstylesheets="false" showheader="false" controller="newOpportunityController"
tabStyle="Opportunity">
<apex:image value="http://i723.photobucket.com/albums/ww231/sumtuck1/la-investments-v2-intrlcd-nav_zpsumlix1ia.png"/>
<apex:sectionHeader title="Step 1 of 3: Personal Information"
/>
<apex:form >
<apex:pageBlock title="Open a NSRi Account">
<!-- This facet tag defines the "Next" button that appears
in the footer of the pageBlock. It calls the step2()
controller method, which returns a pageReference to
the next step of the wizard. -->
<apex:facet name="footer">
<apex:commandButton action="{!step2}" value="Next"
styleClass="btn"/>
</apex:facet>
<!-- <apex:panelGrid> tags organize data in the same way as
a table. It places all child elements in successive cells,
in left-to-right, top-to-bottom order -->
<!-- <apex:outputLabel > and <apex:inputField > tags can be
bound together with the for and id attribute values,
respectively. -->
<apex:panelGrid columns="2">
<apex:outputLabel value="First Name"
for="contactFirstName"/>
<apex:inputField id="contactFirstName"
value="{!contact.firstName}"/>
<apex:outputLabel value="Last Name" for="contactLastName"/>
<apex:inputField id="contactLastName"
value="{!contact.lastName}"/>
<apex:outputLabel value="Phone" for="contactPhone"/>
<apex:inputField id="contactPhone"
value="{!contact.phone}"/>
<apex:outputLabel value="Email"
for="accountPersonEmail"/>
<apex:inputField id="accountPersonEmail"
value="{!account.personEmail}"/>
<apex:outputLabel value="Date of Birth"
for="contactBirthdate"/>
<apex:inputField id="contactBirthdate"
value="{!contact.birthdate}"/>
<apex:outputLabel value="Social Security Number"
for="contactSocial_Security_Tax_ID__c"/>
<apex:inputField id="contactSocial_Security_Tax_ID__c"
value="{!contact.Social_Security_Tax_ID__c}"/>
<apex:outputLabel value="Investment Strategy"
for="opportunityInvestment_Strategy__c"/>
<apex:inputField id="opportunityInvestment_Strategy__c"
value="{!opportunity.Investment_Strategy__c}"/>
<apex:outputLabel value="Initial Investment Amount"
for="opportunityAmount"/>
<apex:inputField id="opportunityAmount"
value="{!opportunity.amount}"/>
<apex:outputLabel value=""
for="opportunityActive__c"/>
<apex:inputField id="opportunityActive__c"
value="{!opportunity.Active__c}"/>
</apex:panelGrid>
</apex:pageBlock>
</apex:form>
</apex:page>
Here's the issue: the preview screen of the page looks perfect but when I click on the site, two of the fields are not showing correctly: one is supposed to be a dropdown menu (Investment Strategy), the other a checkbox (active__c). The check box doesnt even show. Any ideas? The code is below
<apex:page sidebar="false" standardstylesheets="false" showheader="false" controller="newOpportunityController"
tabStyle="Opportunity">
<apex:image value="http://i723.photobucket.com/albums/ww231/sumtuck1/la-investments-v2-intrlcd-nav_zpsumlix1ia.png"/>
<apex:sectionHeader title="Step 1 of 3: Personal Information"
/>
<apex:form >
<apex:pageBlock title="Open a NSRi Account">
<!-- This facet tag defines the "Next" button that appears
in the footer of the pageBlock. It calls the step2()
controller method, which returns a pageReference to
the next step of the wizard. -->
<apex:facet name="footer">
<apex:commandButton action="{!step2}" value="Next"
styleClass="btn"/>
</apex:facet>
<!-- <apex:panelGrid> tags organize data in the same way as
a table. It places all child elements in successive cells,
in left-to-right, top-to-bottom order -->
<!-- <apex:outputLabel > and <apex:inputField > tags can be
bound together with the for and id attribute values,
respectively. -->
<apex:panelGrid columns="2">
<apex:outputLabel value="First Name"
for="contactFirstName"/>
<apex:inputField id="contactFirstName"
value="{!contact.firstName}"/>
<apex:outputLabel value="Last Name" for="contactLastName"/>
<apex:inputField id="contactLastName"
value="{!contact.lastName}"/>
<apex:outputLabel value="Phone" for="contactPhone"/>
<apex:inputField id="contactPhone"
value="{!contact.phone}"/>
<apex:outputLabel value="Email"
for="accountPersonEmail"/>
<apex:inputField id="accountPersonEmail"
value="{!account.personEmail}"/>
<apex:outputLabel value="Date of Birth"
for="contactBirthdate"/>
<apex:inputField id="contactBirthdate"
value="{!contact.birthdate}"/>
<apex:outputLabel value="Social Security Number"
for="contactSocial_Security_Tax_ID__c"/>
<apex:inputField id="contactSocial_Security_Tax_ID__c"
value="{!contact.Social_Security_Tax_ID__c}"/>
<apex:outputLabel value="Investment Strategy"
for="opportunityInvestment_Strategy__c"/>
<apex:inputField id="opportunityInvestment_Strategy__c"
value="{!opportunity.Investment_Strategy__c}"/>
<apex:outputLabel value="Initial Investment Amount"
for="opportunityAmount"/>
<apex:inputField id="opportunityAmount"
value="{!opportunity.amount}"/>
<apex:outputLabel value=""
for="opportunityActive__c"/>
<apex:inputField id="opportunityActive__c"
value="{!opportunity.Active__c}"/>
</apex:panelGrid>
</apex:pageBlock>
</apex:form>
</apex:page>
Hope it helpes you.