Hi All,
If you would like,a new prospect that is created through form handler to become a campaign member after the sync with CRM then you can use the concept of “Static” or “Dynamic” cid.
Static campaign ID would be hard coded into your form’s code while in case of dynamic, you will need to provide a specific campaign ID through the URL. Below is the example to accomplish the concept of dynamic cid :
http://test.com/contact-us/?cid=7016F0000014n6Y
The code that you can use into your form for using static and dynamic cid is given below :
<script>
<script>$(document).ready(function() {
var params = (new URL(document.location)).searchParams;
var cid = params.get(“cid”);
if(cid)
{ document.getElementById(‘cid’).value=cid; }
else
{ document.getElementById(‘cid’).value=’7016F0000014nJm’; }});
</script>
Thank you !!!