1

I have two picklist fields.

picklist1:

  • factory
  • warehouse
  • RS
  • Retail

picklist2:

  • factory Address
  • warehouse Address

If RS/retails is selected in picklist1 then no dropdown in picklist2 it should be free text field.

  • 1
    You can make your picklist not restricting values. But you will need to implement this logic in a custom visualforce page. – Martin Lezer Mar 22 '17 at 9:27
  • i am new to SFDC Could anyone please share your Coding to achieve this. – Arun Mar 22 '17 at 10:15
  • I would not approach this using unrestricted picklist values. Custom Visualforce page with some JavaScript to show/hide picklist2 depending on picklist1 choice. New custom field "Other" to store your text after RS/Retail chosen. Control "Other" visibility with JavaScript too. – TSmith Mar 22 '17 at 10:18
0

If I will implement it, I will create dependent picklists. The values factory Address and warehouse address will be dependent of factory and warehouse. The second picklist must no be mandatory. No value will be dependent of RS or Retail. Also, I will create a text field that I will validate when the RS or Retail will be selected. If I need the factory and warehouse in the same text field, I could create a workflow or a Process flow to populate the same text field.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.