Currently, the only way to map custom SugarCRM fields is to edit the webform2sugar_fields.inc file included with the module. I've added an option to the webform settings page that allows users to enter custom fields to map webform components to custom SugarCRM fields. I'll upload the patch in the first comment.

Comments

jeffam’s picture

StatusFileSize
new3.59 KB

Here's the patch.

I've also made a sandbox fork of this module, and these changes are maintained in the 6.x-4.x_custom_fields_ui branch. One could add that sandbox repo as a remote and pull the changes in that way, too.

rurri’s picture

Status: Needs review » Needs work

Thanks for the patch.

This feature is already available in the latest version of webform2sugar (7.5.x), but this is great way to add to older version (6.4.x).

The only note is that while correct to remove the long list of custom field options from the webform2sugar_fields.inc file, I don't think this is a good idea since it would break backwards compatibility without an update script to find any webforms using any of those fields and creating custom fields for them.

So I would say those either need to be left in the .inc file, or there needs to be an _update() function created to convert the data.

jeffam’s picture

Status: Needs work » Needs review
StatusFileSize
new2.44 KB

Good point. Here's the patch without the default custom fields removed.

rurri’s picture

Looks good to me. Will add to my list of things to test.

rurri’s picture

Status: Needs review » Fixed

Committed to dev

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.