In This Article:

    Change the ZIP prompt on the legislative lookup

    In This Article:


      Salsa provides a tool that your supporters can use to look up the legislators that represent their ZIP code. The link to this page can be found in the Dashboard.


      Click on that, and you'll see the legislative lookup page.


      Supporters can supply a ZIP code and can view the legislators that represent them.


      If you'd like to change the ZIP prompt to something else, then read on!


      The legislative lookup application uses the default template for your organization. We'll edit that template and add a script to it. Here are some steps that you can use:

      1. Edit your default template. Click here if you need help getting started.
      2. Use the browser's search tool to locate the </body> tag.


      1. Insert a blank line just before the <body> tag.
      2. Click here  to see the solution.
      3. Click on the Raw button. 


      1. A window will open containing just the solution source. Copy the contents of the window and close it.
      2. Paste the copied text into the newly inserted line in template.
      3. Customize the title (below)
      4. Save the petition.
      5. Test!


      The ZIP prompt on the legislative lookup page consists of two different parts:


      Here are the steps that you can use to modify these two parts:

      1. Edit the default template.
      2. Locate the newly inserted script from the "Solution" section of this article.
      3. Look for the variable named firstPart in the script.


      1. Replace the text that follows what you'd like to see.  Be careful not to disturb the quotation marks.
      You'll need your full Zip + 4 to find your legislators.
      1. Next, look for the variable named secondPart in the script.


      1. Replace the text that follows with ou'd like to see.  Be careful not to disturb the quotation marks.
      Not sure of your Zip + 4?
      1. Double-check your edits.
      2. Save the default template
      3. Test!


      If you have any questions, then please gather 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.