WordPress.org

Ready to get started?Download WordPress

Forums

Gravity Forms Highrise Add-on
[resolved] Field mapping is still completely wrong (3 posts)

  1. Doug
    Member
    Posted 1 year ago #

    Even when using the new parameter names feature (awesome idea), the field mapping is still completely wrong (not so awesome). Some basic data is passed to Highrise correctly, like the contact's name and e-mail and address, but not much else. The company name is not pulling from the correct field (even though it's specified with a parameter), and tags are still nowhere to be found. Additionally, no additional data is being passed as notes or comments, whether specified with a parameter or not. Using all most recent versions of WordPress, Gravity Forms, and this plugin.

    http://wordpress.org/extend/plugins/gravity-forms-highrise/

  2. brentoe
    Member
    Posted 1 year ago #

    After having this same problem I dove in and found a fix.

    on about line 238 or so of HighriseAPI.php there is a line that looks like this

    if(!empty($value) && isset($custom_fields[esc_html($key)])) {

    If you replace that line with the following, it will now map your custom fields correctly

    if(!empty($value) && isset($custom_fields[strtolower(esc_html($key))])) {

    The problem is that gravity forms uses heading case "My Field" whereas the highrise API uses all lower case so "My Field" is not equal to "my field" and nothing was being set.

    Hope this helps others in the same situation.

    Cheers,
    Brendan

  3. Zack Katz
    Member
    Plugin Author

    Posted 1 year ago #

    Your fix was added in 2.5.1. Thanks, brentoe!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.