Skip to main content
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!
4 respuestas
  1. 19 feb 2015, 18:54
    Yes, it is possible to have a javascript pop-up/dialog box containing a vf page. For this you will have to share with me the Custom Button code, Vf Page code and the URL (including parameters) of the Vf Page
0/9000