In This Article:

    Add optional groups to a donation page

    In This Article:


      Almost all Salsa pages have a way for a supporter to choose or show interests from a list of optional groups. Donation pages currently can't. If you'd like to have a list of optional groups like this on your donation page, then read on!



      1. Create a list of groups in the order that you want them to appear.
      2. Look the groups_KEY for each group. You can click here if you'd like some help finding groups_KEYs. When you are done, you should have a list of groups_KEYs separated by commas (nothing else, just commas).
      3. Have a title in mind for the list of optional groups (for example, "I am particularly interested in..." in the example.)


      Here are some steps that you can use to install the solution:

      1. Edit the template.
      2. Use the browser's search tool to locate the </body> tag.
      3. Insert a blank line just before the </body> tag.
      4. Click here to see the page where the solution lives.
      5. Locate and click on the Raw button. A new window will open containing just the solution text.
      6. Copy the solution text and close the window.
      7. Paste the solution text into the newly inserted blank line in the template.
      8. Save the template.


      The next step is to configure the solution.  Continue editing the template and use these steps.

      Configure groups_KEYs

      1. Find this text in the template:


      1. Remove the numbers and commas between the quotation marks.
      2. Paste your list of groups_KEYS between the quotation marks.
      3. Save the template.

      Configure the title

      1. Locate this text in the template.


      1. Remove the text between <legend> and </legend>.
      2. Type your title between <legend> and </legend>.  Be careful not to disturb the punctuation!
      3. Review your configuration.
      4. Save the template.
      5. Test!

      Enabling the solution

      The last step is to enable the solution.  Enabling the solution tells the script that a particular donation page needs to have the list of optional groups.  Please note that pages that do not have this solution enabled will not have optional groups.

      Here are some steps that you can use for each donation page:

      1. Edit a donation page.
      2. Click on the "Optional Text" tab.


      1. Locate the "Pre Submit Footer" field on on the "Optional Text" page.
      2. Insert a blank line at the top of the "Pre Submit Footer" page.


      1. Copy this text:

      <div id="need-optional-groups"></div>

      1. Paste the text into the newly inserted line in the "Pre Submit Footer" field.


      1. Save the donation.
      2. Test!


      If you have any questions, please collection this information:

      Send this information to, and we'll be glad to help.

      Was this article helpful?
      0 out of 0 found this helpful
      Have more questions? Submit a request



      Please sign in to leave a comment.