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
Yogesh Jain 13Yogesh Jain 13 

prepopulate controlling and dependant picklist field using url hacking

Hi,
I am building a method in apex that generates url with default field values to pre populate fiels in opportunity object. I am trying to pre populate 6 different fiels, out of which two of them are Category (Controlling field) and Sub Category(dependent on Category field selection) are pick list. 

Value in sub category loads and enable only after user select value in Category field. When I am trying to pass default field values using url hacking Category picklist field get populated correctly, where as Sub category pick list field get enabled but does not pre populate

Any thougths, how I can achieve this ?
Nitin ShyamnaniNitin Shyamnani
URL hacking only works in Salesforce classic, in lightning we need to call a aura component method. 
Yogesh Jain 13Yogesh Jain 13
@nitin - Early 2020 Salesforce release do include use of URL hacking with Lightning. As I mentioned I am able to pre populate all fields in lightning opportunity object except the dependent pick list field
Naresh Kumar Mittapally 5Naresh Kumar Mittapally 5
@Yogesh Jain 13
did you find any work around to pre-populate dependent picklist values?