WordPress-to-lead for Salesforce CRM
[resolved] Capture query string parameter and pass it to Salesforce (2 posts)

  1. aswinnair
    Posted 1 year ago #

    I have a requirement where I need to capture a parameter from the page URL and pass it along with other form fields to Salesforce. Any idea how I can do this with the plugin?


  2. Nick Ciske
    Plugin Author

    Posted 1 year ago #

    Dynamically populating fields is on the roadmap, but not available in the current version.

    Use a hidden field and some jQuery to populate it with the query string variable.
    Use the salesforce_w2l_form_html filter to add it when the form is rendered (hacky).
    Wait for 2.3.2 - which has a filter to allow you to set the value of a field without jQuery. You can grab it on GitHub now:

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress-to-lead for Salesforce CRM
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic