Dynamically assigning campaign id in web to lead. handling multiple campaigns in web to lead form.We have 2000+ campaigns, and still more to create. I need to specify the campaign id in web to lead form to track the leads from websites and linked to a campaign. Can you please tell me how can I dynamically pass the campaign id in web to lead form instead of hard coding it. Thanks,


There is no possibility of dynamic ID mapping, you have to give static value.

Thanks, Sandy

  • HI, Is it possible to create a hidden field to store the campaign id and then pass that value to the standard campaign id field, so a blank value will be assigned in campaign id field. please suggest. – Ezhil Robert Dec 6 '15 at 4:40
  • In salesforce we cannot create a Hidden field, but you can hide field from page layout and use that custom field as per your requirement. Thanks, Sandy – Sandy S Dec 7 '15 at 6:32
  • yes, I can use a custom field and hide it in page layout, but is it I have update the campaign id and make it visible in web to lead form,? the logic is I do not want to hard code the campaign id in web to lead form. is there is any other way to do it ?? – Ezhil Robert Dec 8 '15 at 6:55
  • <input type="hidden" name="Campaign_ID" value="70120000000U4eJ" /> Pass dynamic id to that value attribute Please contact me directly at Skype- sandy.mirketa for better understanding. Thanks. :) – Sandy S Dec 9 '15 at 8:57
  • Can you please explain more about this. I don't understand about the Campaign Id you have mentioned here. – Ezhil Robert Dec 13 '15 at 6:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.