function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
springeverspringever 

Choose different record type, how to turn to different page layout?

When create an object Contact, there're 2 record type: type 1 and type 2 for page layout. Hope to fulfill the following setting:

If choose type1, the page will turn to the default page layout;

If choose type2, the page will turn to self-develop screen.

How to make this setting? Thanks.

 

ryanjuptonryanjupton

This is the standard behavior if you don't have a default record type set for the object for the profile and are using the standard ui. I'm assuming you are using standard ui since you didn't post this in Visualforce Development. Please correct me if I'm wrong.

springeverspringever

yes,I am using standard ui. Should I develop a  record type screen to choose?

ryanjuptonryanjupton

Yes, you will need a different record type and a different page layout to assign to that record type. That new page layout will contain the values you only want to show to the user of that record type. This should help http://login.salesforce.com/help/doc/en/creating_record_types.htm

Bhawani SharmaBhawani Sharma
Try this:
http://www.salesforce.com/docs/developer/cookbook/Content/vf_conditional_page.htm

This is for Profile, but you can use it for record type as well