I have a visualforce page with three picklists. Country, Group, Products.

Country is controlling field and Group is dependent picklist. Group is controlling field and Products are dependent picklist.

In Products I have some products which are specific for United States. But Products are not controlled by Country. The Products have a tag (U.S. only) that indicates that they have to be excluded from the Products list when a Country other than U.S. is selected. How can I accomplish this?

I tried to use javascript to hide those values when country is not U.S. but that is not working for me.

  • 1
    Just a note, including in your question that you need help urgently is not very favorably regarded on this forum. Just remember we are offering our help voluntarily. :) I edited your question to be a little more polite (and also easier to read). – Adrian Larson Nov 24 '15 at 4:38
  • 1
    Also you will get much better feedback if you include the code you have tried. A code snippet is much more helpful to us than "I tried to use javascript" – Adrian Larson Nov 24 '15 at 4:39
  • Do you want to create custom dependent picklist? – Ratan Paul Nov 24 '15 at 4:58
  • I have created all three custom picklists but today i got the requirement that some products have been added which are dependent on country. i was trying but i didn't get any answer from my google search – Lakshmi Nov 24 '15 at 5:04
  • @Lakshmi do you have mapping for which products belongs to which country? – Ratan Paul Nov 24 '15 at 5:15

Your Answer

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

Browse other questions tagged or ask your own question.