+ Start a Discussion
Hiteshkumar Chaudhari 2Hiteshkumar Chaudhari 2 

how to set default value of the picklist to none that is until user select option from picklist it should be "select one option"

how to set default value of the picklist to none that is until user select option from picklist it should be "select one option"
Manohar kumarManohar kumar

Hi Hitesh, i think you have to go with work flow.

Thnaks,

Manohar

Hiteshkumar Chaudhari 2Hiteshkumar Chaudhari 2
how can i embed workflow in vidualforce page..

i am working on visualforce 
Manohar kumarManohar kumar

Hi Hitesh, Not sure it will help or not.. but i normally do like this...

<apex:selectList value="{!p1.Description__c}" size="1" >
                            <apex:selectOption itemValue="--None--" itemLabel="--None--"/>
                            <apex:selectOption itemValue="Postage" itemLabel="Postage"/>
                             /// other values ///  

</apex:selectList >

None will go be shown by defalut ...
is this helpful ?

if not please share some code ..

Thanks,

Manohar 

Hiteshkumar Chaudhari 2Hiteshkumar Chaudhari 2
its not working Manohar. it gives error " Unknown property 'p1.Description__c' referenced in demopage1"  can you tell me how to resollve it or declare obj in visualforce page
 
Manohar kumarManohar kumar

Hi Hitesh, P1 is the object name defined in the standard controller.Description__c is my field.Please share your code .

Thanks