You need to sign in to do that
Don't have an account?
pfog
Need help with Custom Button / Object
I could use some help figuring out how to develop a custom button. We have the following Custom Objects: Marketing Campaign (very simple start / stop dates with description) and Event Attendees (which links a contact with a campaign and has checkboxes for RSVP, Confirmation, Attended). We use this quite abit for Relating action items, email etc to campaigns.
We'd like to expand on this with a custom button(s) from Contact Lists to select multiple contacts from a list and then add to a campaign. Preferably it will take user to a window to select from a campaign drop-down (similar to the way Change Lead Status works).
Can anyone help me get started?
Have you taken a look at the Force.com Cookbook (http://www.apexdevnet.com/cookbook/)? There's a chapter entitled "Customizing Buttons and Links" that can help you get started. In particular, there are two recipes that will give you a good overview of how to write custom buttons that operate on lists:
- "Creating a Mass Delete Button" on page 132
- "Creating a Mass Update Button" on page 135
If you can write JavaScript that finds the list of available campaigns (via a SOQL query), displays them in a list, and then gets the user's choice, you should be most of the way there.Hope that helps a little,
Caroline Roth
Co-Author, Force.com Cookbook