• Mayank Singh Delhi
  • 0 Points
  • Member since 2018

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
  • 7
Hi I am trying to create a contact related record when a new account is created

trigger Createcontact on Account (before insert) {  
List<Contact> contactList=new List<Contact>();
    for (Account a : Trigger.new) {
    Contact c=new Contact();
        // Iterate over each sObject
  insert contactList;

the above trigger creates a new contact where in i want the contact to be related to the respective account
Hi all,

I cretaed a simple vf page. But when I preview it in lightning experience then, header is not visible. Available for Lightning Experience, Lightning Communities, and the mobile app is checked.

Here is code of page.
<apex:page standardStylesheets="true" doctype="html-5.0" showheader="false">
  <!-- Begin Default Content REMOVE THIS -->
  This is your new Page
  <!-- End Default Content REMOVE THIS -->
Arpit vijayvergiya



I need to Rendering a Salesforce Object Page in a VF page without sidebar and header.


I used the ?isdtp=vw option when I was getting that perfectly but after the winter release I am getting the page in the frame but when I click the inline buttons  like "New" or an Excisting record link it is not working properly.


I also tried using the  ?isdtp=mn option when I got all the options "New" etc....but the page looks shrinked and I also get some additional Blue panels at the top.


Could someone please gide me getting that correct.


Thanks in Advance,




For a custom object, is there a built-in action I can specify within a command button to get a "Save & New" button?
<apex:commandButton value="Save" action="{!Save}"/>