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
rajasfdcrajasfdc 

how to put record type in vf page?

i mean to say.i have technical and non techincal types in customization .each one have different values.we have to use for differntiate these technical and non technical by using record type coming to vf page how to differ the technical and non technical.and how to put these in vf page .please clarify these .

thanks in advacne

 

S91084S91084

If you are trying to display the list of record types on the visualforce page associated to the object, you can query the record type as follows

 

List<RecordType> lst = [Select r.SobjectType,  r.Name,  r.IsActive, r.Id, From RecordType r where SobjectType='<object name>'];