Skip to content

Instantly share code, notes, and snippets.

@salsalabs
Last active November 22, 2016 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salsalabs/d64e2836d6108c68d732 to your computer and use it in GitHub Desktop.
Save salsalabs/d64e2836d6108c68d732 to your computer and use it in GitHub Desktop.
Only one guest for per event attendee.
<script type="text/javascript">
// Limit event attendeees to one guest for an event.
// @see https://help.salsalabs.com/hc/en-us/articles/114094526433
$(document).ready(function() {
if (RegExp('guestReg\\.sjs.event_KEY=999999').test(window.location.href)) {
$('#addGuestButton').hide();
$('#removeGuestButton').hide();
var regheaderStrong = $('#regheader strong');
regheaderStrong.html(regheaderStrong.html().replace('Register guests', 'You may register a guest'));
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment