Print this page

VisualForce page doesn't display in VisualForce section

Knowledge Article Number 000220093
Description The ability to customize your Salesforce pages, by using VisualForce is one of the many perks of using the Salesforce system. Sometimes getting the code for those customizations to work properly can be a headache, so we'll show you what you can do to get  your VisualForce pages to work properly.
Resolution

If you're having trouble getting your VisualForce pages to embed properly, it could be due to form tags around the detail tags. To get your VisualForce page to render, you'll need to remove the form tags or make them so they're no longer surround detail tags.

Wrong code

 
<apex:page standardController='CustomTest__c'>


<apex:form>
  <apex:detail>
  <h1>Congratulations</h1>
  This is your new Page
  </apex:detail>
</apex:form>


</apex:page>
 

Correct code

 
<apex:page standardController='CustomTest__c'>

  <apex:detail>
  <h1>Congratulations</h1>
  This is your new Page
  </apex:detail>


</apex:page>




promote demote