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
AbAb 

making record type look like picklist | add a default select option at beginningiong

Hello,

If a object has many record types available then it gives a choice to select a record type and it always point to default record type.
I want that instead of pointing to default record type it should point to blank like "select" like the picklist but the choosing of the picklist should be mandatory.

thanks for suggestion
Best Answer chosen by Ab
AshokaAshoka
Hi Sandrine,

You can add an select option to your selectlist. so it will show the default value "select" in your picklist. Hope this will help you

<apex:selectList id="chooseColor" value="{!string}" size="1">
<apex:selectOption itemValue="Select" itemLabel="Select"/>
</apex:selectList>

Thanks 
Ashoka

All Answers

AshokaAshoka
Hi Sandrine,

You can add an select option to your selectlist. so it will show the default value "select" in your picklist. Hope this will help you

<apex:selectList id="chooseColor" value="{!string}" size="1">
<apex:selectOption itemValue="Select" itemLabel="Select"/>
</apex:selectList>

Thanks 
Ashoka
This was selected as the best answer
AbAb
but it is a standard page not a VF
AshokaAshoka
Then in your picklist values add a select value at the top. Then it will be defalut value.