Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

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

I used this link to help me create a custom conver button on the lead so that way I could default check "Do not create new opportunity upon conversion". The button is created and from what I can tell, is right but I am stuck when it says to code the button. It gives 2 lines of code, but where does that code go? I am sure I am missing something easy, but I am pretty new to coding so forgive my silly question.

share|improve this question

The code is the JavaScript your button executes. When you are on the Custom Button screen and select OnClick JavaScript as your content source you would enter that code (as one line) into the editor below.

share|improve this answer
That makes perfect sense, thanks so much for your help! – Paula Rogers Jan 14 '13 at 14:43

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.