Skip to content

Instantly share code, notes, and snippets.

@equijada001
Last active August 29, 2015 13:59
Show Gist options
  • Save equijada001/10919002 to your computer and use it in GitHub Desktop.
Save equijada001/10919002 to your computer and use it in GitHub Desktop.
Convio embedded survey - duplicates the email address of user into hidden CRI email field
<!-- Bringing in jQuery -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<convio:session name="28" param="EMBED:14841"></convio:session>
<script>
$(document).ready(function() {
//$("input#cons_email").parents("tr.old-school").addClass("hide");
$("input#cons_email").parents("tr.old-school").hide();
$('input[name="3340_14841_3_12143"]').bind("keyup change", function (){
var email_input = $(this).val();
$("input#cons_email").val(email_input);
});
//Center align survey table
$('tr.old-school td').attr('align','center');
//Hide required 'star'
$('td.req').empty();
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment