You need to sign in to do that
Don't have an account?

Add "Edit Layout" functionality to a Visualforce Page
Hello,
I would like to add the Standard "Edit Layout" functionality that is available on a Salesforce record on a Visualforce page so that the Admin can drag and drop fields on to the Visualforce page instead of adding the new fields in the code. Is this possible? If so, please suggest how to proceed.
Thanks,
Krish
I would like to add the Standard "Edit Layout" functionality that is available on a Salesforce record on a Visualforce page so that the Admin can drag and drop fields on to the Visualforce page instead of adding the new fields in the code. Is this possible? If so, please suggest how to proceed.
Thanks,
Krish
You can create Edit layout type functionality for your visualforce page. I can't write whole code for you because it is very much time consuming but I can guide you how you can achieve this functionality. You can follow below steps to do that
1. Get all fields using describe methods
2. Use Jquery to create Drag/Drop type region such as (http://jqueryui.com/droppable/#photo-manager) and add all above fields in drag section
3. Capture droppable fields from jquery and save them in any custom object for display on page.
4. While displaying on page you can use following code:
Apex Class
Apex Page:
Does it makes any sense ?
Thanks,
Himanshu
Salesforce Certified Developer | Administrator | Service Cloud Consultant
P.S. If my answer helps you to solve your problem please mark it as best answer.
That is great. it will be interesting if we can achieve that functionality. you can put your progress here.
Thanks,
Himanshu
Salesforce Certified Developer | Administrator | Service Cloud Consultant
P.S. If my answer helps you to solve your problem please mark it as best answer so that other can get benefit.