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
Spencer MacSpencer Mac 

How can I get a visualforce page to only render a specific record type for an object?

For example, I have 3 custom record types for the "Account" object; I want to create a basic vf page that only displays the existing records for a specific record type.
Mudasir WaniMudasir Wani
Dear Park,

You can use an extension and fetch the record type dynamically and then you can use the render attribute on page for hising and showing records.

You can use labels to store your record type name or 
Fetch record type  Dynamically
http://www.jonathanbroquist.com/retrieving-sobject-recordtypeid-dynamically-with-salesforce/
Use of Render 
https://developer.salesforce.com/forums?id=906F000000097rlIAA


Please mark this as solution if this solves your problem, So that if anyone has this issue this post can help
 
Spencer MacSpencer Mac
Thank you Mudasir, I am getting a compile error related to the map token when I try to use this, do you know how to fix this?
Error: Compile Error: unexpected token: 'Map' at line 6 column 2
Mudasir WaniMudasir Wani
Dear,


Have a look on the blog and let me know if you have any issue.
Paste the code which you may use.

http://salesforce.stackexchange.com/questions/11968/what-would-be-the-best-approach-to-get-the-recordtype-id

Please mark this as solution by selecting it as best answer if this solves your problem, So that if anyone has this issue this post can help