You need to sign in to do that
Don't have an account?
mustapha L 1
VisualForce, Display 1 layout based on Object criteria
Hi there !
I have created many layouts with VisualForce.
I have created a BUTTON which fired one of Layouts.
what i'm looking for is how to make kind of auto-select Layout.
idea is to create one customField where are listed some criteria and based on those criteria when we clic on Button automatically the most approproated page will be displayed.
I already have Layout, button, criteria...i just need assistance about how to fire one or another visual page
exemple : we could image a custom Field named "language" and based on this field it will open the FR , UK...or SPANISH layout.
Many thanks for assistance you could provide.
I have created many layouts with VisualForce.
I have created a BUTTON which fired one of Layouts.
what i'm looking for is how to make kind of auto-select Layout.
idea is to create one customField where are listed some criteria and based on those criteria when we clic on Button automatically the most approproated page will be displayed.
I already have Layout, button, criteria...i just need assistance about how to fire one or another visual page
exemple : we could image a custom Field named "language" and based on this field it will open the FR , UK...or SPANISH layout.
Many thanks for assistance you could provide.
pcon
you can do this a couple of different ways. You could create a single large Visualforce page which hides / shows the layout based on your custom field using the rendered attribute. Another option would be to put each of your layouts into tabs using the apex:tab tag and then select the active tag based on your criteria. And yet another option would be to have a Visualforce page for each of your layouts and then have one main page that automatically redirects the user to the correct child page. For example: