That codes is what you gave me for the onchange event for the picklist on the form which works great, however it does not keep the piclist dropdown restricted to what is listed in the first of the cascading picklists if you leave the form and come back. It allows the bottom piclist which should be fed by the first one to show all possible options instead of just the ones already selected. I was told by another user that I had to add the entire code to the onload of the form but that is where it causes the problems. Thanks
Main Topics
Browse All Topics





by: crm_infoPosted on 2009-03-16 at 15:54:25ID: 23903305
Can you define what you mean by "causes problems?" Do you know which specific line is causing the issue.
Just off the top of my head, it looks like the code that causes the issue is being used to create a dependent picklist. If that is correct, then it should be executed as a function each time that the Industry picklist is changed. You may want to try the code below, and then, in the Industry OnChange Event, insert:
MakeSubIndustryList ();
NOTE: Even with the revised code, I expect you will still encounter a similar javascript error. To help ID where it is occurring, I inserted the two "alert" lines near the end of the code. If you still have a javascript error, let me know which alerts you see and more of the specifics about when the javascript error occurs and I will try to provide additional guidance.
Select allOpen in new window