• Bradley Craig
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

Hi everyone.  Need some help here.
I have a real simple Visualforce page/form to edit an account.

Here is the code:

<apex:page standardController="Account">
    <apex:form >
      <apex:pageBlock title="Edit Account">
        <apex:pageBlockSection columns="1">
            <apex:inputField value="{! Account.Name }"/>  
            <apex:inputField value="{! Account.Phone }"/>        
            <apex:inputField value="{! Account.Industry }"/>        
            <apex:inputField value="{! Account.AnnualRevenue }"/>
        </apex:pageBlockSection>
        <apex:pageBlockButtons >
            <apex:commandButton action="{! save }" value="Save" />        
        </apex:pageBlockButtons>
    </apex:pageBlock>
    <apex:pageMessages />
    </apex:form>
</apex:page>


When I preview the page (from developer console or by using the preview feature in setup) I get different views depending on whether or not I am in Lightning mode.

In Lightning mode  I do not see the menu bar or side bar - just the plain form:
Lightning View of Form
If I switch to Salesforce Classic, I see the menu and sidebar surround my form:

Classic View of Form

I have the form enabled for Lightning in setup:
Enabled for Lightning

I was expecting the menu to appear in Lightning experience - especially in light of the trailhead documentation here:
https://trailhead.salesforce.com/modules/lex_dev_overview/units/lex_dev_overview_visualforce?trailmix_creator_id=00550000007IN2IAAW&trailmix_id=sf-development

From the trailhead:  "...there isn’t a way to suppress the Lightning Experience header and sidebar."   

If there isn't a way to supress them, why don't I see them?

Any help is appreciated!

Hello all,

In the Create & Edit Visualforce Pages challenge, for #6 in the first part they ask you to run a command in Console to make the page look like Lightning. When I run this command, I am receiving the error "Uncaught ReferenceError: $A is not defined at <anonymous>:1:1".

Has the command changed?

Thank you!