Skip to main content
added 162 characters in body
Source Link
Ashu
  • 55
  • 6

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.

I have an cloud page which include smart capture form, which having a checkbox. 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)=%%)

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.

Source Link
Ashu
  • 55
  • 6

Can i set variable value into Smart Capture submit option url

I have an cloud page which include smart capture form, which having a checkbox. 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)=%%)