In This Article:

    Change the ZIP prompt on the legislative lookup

    In This Article:

      Background

      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.

      2015-12-28_1249.png

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

      2015-12-28_1259.png

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

      2015-12-28_1340.png

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

      Solution

      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.

      2015-12-28_1308.png

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

      2015-12-03_1147.png

      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!

      Customization

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

      2015-12-28_1343.png

      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.

      2015-12-28_1347.png

      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.

      2015-12-28_1356.png

      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!

      Questions?

      If you have any questions, then please gather this information.

      Send this information to support@salsalabs.com, and we'll be glad to help

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

      Comments

      0 comments

      Please sign in to leave a comment.