I have an cloud page which include smart capture form, which having a checkbox, email, country and address fields. I am setting variable value to true and false using jQuery if checkbox is true or false. My code is:
var check;
jQuery("input[name='checkin']").change(function() {
if(jQuery(this).prop('checked')==true){
check = true;
}
else{
check = true;
}
});
Now i want to set the variable value into url. Can someone tell me how to do that so that my submit url will be (abc.com/?url=check) or with AmpScript variable (abc.com/?url=%%=v(@check)=%%)
Basically i want to run another code based on the value of by checkbox on the page that shows up after submitting the form.