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
Javier MaldonadoJavier Maldonado 

Dynamic picklist choice filtered by previous option

Hello everione,

Maybe someone has experience working with some advanced code. I'm working in a project to allow the user select option filtered by the previous selected pick, everything from the same object, but this list must be shown in a different object. This field must be shown dynamically, as drop dow list, and filtered by the previous selection.
Object Product: Contain all records that I need to show in my new app
Fields - Product Type, Product Name, and Max Wide
New app
After pick Product Type, Product name is going to show just the product name filtered by Product, then this product has different width, so this Max Wide is going to show the wide on this Product Name.
 
Untitled
raj4cloudraj4cloud
please refer some of the useful code snippets to build the dynamic dependent picklist values.
http://sfdcsrini.blogspot.com/2014/07/how-to-use-apexselectoptions-and.html
https://www.minddigital.com/how-to-create-dynamic-dependent-picklist-of-objects-within-salesforce/
http://www.infallibletechie.com/2012/10/dependent-picklist-using-apex-in.html