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
HayatarHayatar 

About an initial value of the select list

As the first stage display when you display the select list on the screen by using the inputfield tag,
can this initial display be changed to "** Please select it" etc. though it is displayed, "-- none --"?
Please continue your favors toward the professor when there is a person who knows.
I am sorry in poor English.

Best Answer chosen by Admin (Salesforce Developers) 
bmabma

There are 2 ways:

 

1) You can set that as the "default value" in the "Picklist Values" for your field, and perform validation to check against that in your trigger.

 

2) use a Controller to list the available values, and display it through an apex:selectList component.

All Answers

krishnagkrishnag

you can create output field below the field and make it enable when none selected.

bmabma

There are 2 ways:

 

1) You can set that as the "default value" in the "Picklist Values" for your field, and perform validation to check against that in your trigger.

 

2) use a Controller to list the available values, and display it through an apex:selectList component.

This was selected as the best answer
HayatarHayatar

Thank you so much!

 

I finally got it straightened out.