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
amateur1amateur1 

select options picklist display

hi all

 

i have tried to put some values into a picklist but the diplay i am getting is a full text field with scroll bar i dont want all the values to apeer fully i want it to be lika a picklist field whre in we can select the paricular option

 

 


<apex:column headerValue="lot number piclist">

<apex:selectlist >
<apex:selectOptions value="{!wrapper.options}" />
</apex:selectlist>

</apex:column>

Best Answer chosen by Admin (Salesforce Developers) 
Navatar_DbSupNavatar_DbSup

Hi,

Try the below code snippet as reference:

 

<apex:column headerValue="lot number piclist">

 

<apex:selectlist size="1">

<apex:selectOptions value="{!wrapper.options}" />

</apex:selectlist>

 

</apex:column>

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

All Answers

Navatar_DbSupNavatar_DbSup

Hi,

Try the below code snippet as reference:

 

<apex:column headerValue="lot number piclist">

 

<apex:selectlist size="1">

<apex:selectOptions value="{!wrapper.options}" />

</apex:selectlist>

 

</apex:column>

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

This was selected as the best answer
amateur1amateur1

thank u navatar u r a mega contrubuter for salesforce

machineni prashanthmachineni prashanth
hi all 
colud any body explain the logic about  how to display the piclist value in apex class