Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So I want to design a button that when pushed would bring up a small pop up window that would ask for input from the user. I would prefer to make this input a selection from a drop down menu.

Then I want to take that information and send it to another visualforce and populate certain fields with it. Should I use the custom button from the Salesforce developer site? If so how do I make it bring up a prompt window?

share|improve this question
up vote 3 down vote accepted

Unfortunately, using a standard custom button, this isn't possible. You may be able to do some tricks by creating a button with Content Source set to Visualforce and then executing some Javascript as soon as the page begins to load, but they would have to be directed to that page first.

Now, if you didn't need to use the drop down, this may not be as big of an issue. You may be able to do something using Javascript's prompt() method, but that uses a input box.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.