Dynamic and Static cid Concept

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 :


The code that you can use into your form for using static and dynamic cid is given below :


<script>$(document).ready(function() {

var params = (new URL(document.location)).searchParams;

var cid = params.get(“cid”);


{ document.getElementById(‘cid’).value=cid; }


{ document.getElementById(‘cid’).value=’7016F0000014nJm’; }});


Thank you !!!


Need more help?

Hi there, was your problem or query resolved? If not & need more assistance, please do reach out to us at info@nanostuffs.com, we'll be more than delighted to help. Nanostuffs has 7+ years of extensive Salesforce & iOS/Android experience.
Holler Box