0

There is a way to create a dynamic visualforce page and render the fields depends of the page layout?. Now I have 2 page layouts with different fields and I won't to create two visualforces. I'm creating this page because visualforce is not visible in the standard edit mode page of my recodrs.

Greats

0

Not sure whether you can get the current layout directly but since the page layout is determined by record type and current user's profile and you can definitely adjust your VF page based on those two values. This is not the perfect solution since once you changed your page layout assignment you will have to change your code but will solve your issue. And the maintenance shouldn't be too bad though.

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.