This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="https://API_HOST/save" method="POST"> | |
<input type="hidden" name="organization_KEY" value="5881"/> | |
<input type="hidden" name="chapter_KEY" value="887"/> | |
<input type="hidden" name="email_trigger_KEYS" value="12644,12656"/> | |
<input type="hidden" name="object" value="supporter"/> | |
<input type="hidden" name="Receive_Email" value="1"/> | |
<label for="first_name">First Name:</label><input type="text" id="first_name" name="First_Name"/><br/> | |
<label for="last_name">Last Name:</label><input type="text" id="last_name" name="Last_Name"/><br/> | |
<label for="email">Email:</label><input type="text" id="email" name="Email"/><br/> | |
<style>.memberCode{display:none;}</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Add these two lines to your form if you want a supporter to sign | |
the petition with action_KEY 12345. --> | |
<input type="hidden" name="link" value="action"/> | |
<input type="hidden" name="linkKey" value="12345"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
// Automatically log supporters out of Salsa pages, effectively disabling the | |
// Welcome Back Message. See https://help.salsalabs.com/hc/en-us/articles/223344487 | |
// This script will not run if Salsa's returned an error. | |
if (document.querySelector('.error') == null) { | |
if (typeof window.sessionStorage.redirected == "string") { | |
delete window.sessionStorage.redirected; | |
} else { | |
var notThese = ['event/common.+checkout.sjs', 'guestReg', 'receipt.sjs', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
<!-- TemplateBeginEditable name="content" --> | |
<h1>Page content goes here...</h1> | |
<!-- TemplateEndEditable --> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
(function () { | |
// SalsaStaff 81331: If "amount=number" is in the URL, then click the radio button | |
// for that amount. If a radio button does not exist, then put 'number' into the | |
// "other" field. | |
// | |
// This script captures the amount at submit and stores it in the browser's local | |
// storage. If there are errors passed back from Salsa, then the amount is retrieved | |
// from the browser's local storage. Local storage is cleaned after retrieving the value. | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
// See https://help.salsalabs.com/entries/22876904-Hide-email-addresses-on-targeted-actions | |
$(document).ready(function() { | |
if (RegExp('action_KEY=NNNNN').test(window.location.href)) { | |
var checkExist = null; | |
var recipientChecker = function() { | |
if ($('.recipient').length > 0) { | |
$('.recipient .number').each(function() { | |
var x = $(this).html(); | |
x = x.replace(RegExp('Email.+?</span>'), ''); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
// See https://help.salsalabs.com/entries/22876904-Hide-email-addresses-on-targeted-actions | |
$(document).ready(function() { | |
if (RegExp('action_KEY=NNNNN').test(window.location.href)) { | |
var checkExist = null; | |
var recipientChecker = function() { | |
if ($('.recipient').length) { | |
clearInterval(checkExist); | |
$('label[for^=Content]').text("YOUR REPLACEMENT HERE"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
// See https://help.salsalabs.com/entries/37087850-Hide-View-Respondents-on-distributed-event-page | |
$(document).ready(function() { | |
$('a[href*="profile/host.jsp?event_KEY="]').hide() | |
}); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
// FIELD_NAME can be Phone, Cell_Phone or the API name of a custom supporter field. | |
$('input[name=FIELD_NAME]').blur(function() { | |
if (!RegExp('\\d{3}-\\d{3}-\\d{4}').test($(this).val())) { | |
alert('Please provide a phone number like NNN-NNN-NNNN.'); | |
return false; | |
} | |
return true; |
OlderNewer