You need to sign in to do that
Don't have an account?

javascript popup with salesforce dependent picklists
I have a project that includes the requirement for the following process: a user clicks a salesforce button, and under certain conditions, a pop-up window appears. On that window should be two, dependent picklist fields. Once they complete those fields and click "Ok", the values in those fields should be mapped to the corresponding fields in Salesforce. If they click that button again under the same conditions, the values they have already selected should default.
I know this is possible using a custom button which re-directs the user to a Visualforce page (so not quite a pop-up) and uses apex:inputFields. However, does anyone know if this would be possible using a custom button that executes JavaScript on click? I'm just not sure if it would be too much overkill to build the dependent picklists on this pop-up page or if there is an easy way to grab the information from the Salesforce fields.
I'm not really looking for the code here, just general thoughs on if this approach is even possible/worth considering.
Thanks!
I know this is possible using a custom button which re-directs the user to a Visualforce page (so not quite a pop-up) and uses apex:inputFields. However, does anyone know if this would be possible using a custom button that executes JavaScript on click? I'm just not sure if it would be too much overkill to build the dependent picklists on this pop-up page or if there is an easy way to grab the information from the Salesforce fields.
I'm not really looking for the code here, just general thoughs on if this approach is even possible/worth considering.
Thanks!
I think it is possible using javascript but it will be too much of coding for a custom button.
There is one more solution, on click of the custom button a popup will open and that popup will contain a vf page containing those 2 picklists.
If you are interested in this solution then let me know I can help you with this.
Regards,
Swayam Arora
The visualforce page will be something simple like this:
https://c.cs30.visual.force.com/apex/MediaPlanRevisionDetails
This is the simple test button I had previously created when I thought I might try and do it all in javascript, but the simple prompt text field won't work for this situation.