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
MukulMukul 

Object's picklist field dependency on a parameter passed through URL

Hi all,

 

I have a picklist field that has different options like; Cotnains, Greater than, Less than and so on.

 

I want to show different options dependent on what is beign passed in the URL - like if the field is a Number field then i dont want to show Contains and other String Operation Options.

 

I know that we can do picklist dependencies in an object byt is there any way i can do a picklist dependency on a param?

 

Regards

Mukul

snugglessnuggles

hi mukul,

 

you can certainly do this in a visualforce page, by pulling the params into the controller and perfroming whatever logic you like, but this might be more work than you would like to do if you are just trying to implement this on a standard page.  the native way to get picklist options to change is through a dependent picklist, but this only works with two picklists.  maybe, though, you could somehow integrate the native dependent picklist functionality into your solution to avoid some work.