In lead object , when I click new to create a new record it calls a vf page (handled by custom button by calling a vf page in 'New ' button). At the time of creation , in one section it is showing 10 fields. But after clicking on save , in that section it is only displaying 5 fields. When I checked in layout , it only displays 5 fields. My question is , how the extra fields gets added at the time of creation.

Please provide a solution and thanks in advance !!!

  • this is a custom page? (Create page) – Tushar Sharma Jan 13 '16 at 5:37
  • No its normal lead creation page. Rest of the fields are displayed as per the layout. – user27537 Jan 13 '16 at 5:40
  • can you check the url I am sure it is apex page as Tushar said. – Himanshu Jan 13 '16 at 5:45
  • do you have two different record type for lead? – Himanshu Jan 13 '16 at 5:46

Your New page is actually a Visualforce page. So all fields are controlled by that page. After saving a new record the user is redirected to the standard page layout. Over there the fields are controlled by layout.

There are two different things:

  • visualforce page - 10 fields
  • page layout - 5 fields

If you want to edit the New page fields - edit your visualforce page. Otherwise edit the page layout.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.