In This Article:

    Two ways to automatically set the State field on a Salsa page

    In This Article:

      Two ways...

      The State field on Salsa pages defaults to the value "Select a state", allowing your users to select their state manually. But you can save your supporters some time by automatically setting the State field. 

      Here are two ways to set a different default value in the State field.

      The first is to set the State by amending your page's URL as described in this article.  Here's an example of a donation page where the state is defaulted to "TX":

      https://wfc2.wiredforchange.com/o/8001/c/27/p/salsa/donation/common/public/?donate_page_KEY=7662&State=TX

      If you would rather not change the URL, or you would like to have all of the Salsa pages for your organization have the state automatically defined, then read on!

      Audience

      • Campaign managers that modify templates.

      Process

      <script type="text/javascript">
      $(function() {
      $('*[name="State"]').val('NC');
      });
      </script>
      • Paste the Javascript right before the </body> tag in your template.  The </body> tag should be on a line by itself when you are done.
      • Notice that the state in the example is North Carolina (NC).  Replace "NC" with your state abbreviation.
      • Save the template

      When you are done, all of the pages that use this template will have the state set to the state that you chose.

      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.