+ Start a Discussion




I have a picklist which has one field 'Others'. I want to appear a text box just below the picklist if a user selects 'Others'.

How can I achieve that? Is there any way around except record types?


Thanks in advance!




Laxman RaoLaxman Rao

You can do using visual force.

But you cannot do using the standard page layout.


+1 @ Laxman Rao. Visualforce Apex has a command called rerender that can rerender a page (or section of a page) when a set of criteria is met (in your case, when Others is selected).


Beyond that, please promote this Idea which is currently under consideration and will allow this functionality without the use of custom code.



Nazeer AhamedNazeer Ahamed

Instead, I have very simple approach to achive this using standard layout and some configurations!!!


  1. Just create a custom field "Other XXX"
  2. Display this text field after the picklist field
  3. Create validation rule such a way, if "Others" selected in pick list filed, make the text field "Other XXX" mandate.


Hope this helps, Keep the application simple as much as possible.


VF page is not recomended for this simple need.


@xphiberoptikx  , I promoted the idea. 



This does not meet the OP's needs though. They do not want the field visible unless the picklist value Others is selected. The only way to achieve this is via a Visualforce page.

Laxman RaoLaxman Rao

I agree with @xphiberoptikx




I had discussed that idea even before posting it here and obviously concerned people did not like it.They want in that way only and I think I need to use visualforce.


@xphiberoptikx  Can you provide me some code to get started with?


Sorry, I cannot help you there. I am not a developer. Your best bet is to post your question in the Visualforce Development forum. Good Luck.


No issues. Thanks!

Nazeer AhamedNazeer Ahamed

Alokv - I know the workaround mentioned is exactly you are looking as the use case / user experience need you described. but it could be another approach to provide the same functionality but user experience will be differ.


Check out the below some example on VF page code snipet.



Thanks a lot for your help, Nazzy!