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
jagjitsingh@indivar.comjagjitsingh@indivar.com 

Picklist Values

Hi

 

   I have 2 Picklists .

 

   One contains -> Location1 & Location2

   Second field contains -> Office1A,Office1B,Office2A,Office2B 

 

   Office1A,Office1B belongs to LocatonA

   Office2A,Office2B belongs to LocationB

 

   I want to create W2L . Will this work with W2L if not then how it can be done in W2l .

 

Thanks

Best Answer chosen by Admin (Salesforce Developers) 

All Answers

jagjitsingh@indivar.comjagjitsingh@indivar.com

Hi

 

 It is displaying dropdown , but only prolem is it is displaying all List of Offices , not on the basis of selection of Location dropdown

 

Thanks

SrikanthKuruvaSrikanthKuruva

what is w2l?

jagjitsingh@indivar.comjagjitsingh@indivar.com
Hi
 
  It is Web-To-Lead . Between Location & Office i have created Dependency.
 
Thanks
SrikanthKuruvaSrikanthKuruva

Are you using the w2l html which is generated by the wizard in salesforce? if this is the case you have to create the dependency yourself using javascript.

jagjitsingh@indivar.comjagjitsingh@indivar.com

Hi

 

   Can u pls help me with JavaScript

I have 2 PickList fields in Salesforce Location & office

 

   One contains -> Location1 & Location2

   Second field contains -> Office1A,Office1B,Office2A,Office2B

 

   Office1A,Office1B belongs to LocatonA

   Office2A,Office2B belongs to LocationB

 

I want when location1 is selected from first list office1a,office1b should be visible.

if location2 is selectedfrom first list then office2a,office2b should be visible

 

Thanks

SrikanthKuruvaSrikanthKuruva
This was selected as the best answer