2

We have occasional need to allow submissions of content (either Drupal nodes or comments on existing nodes).

What is the recommended way to expose CiviCRM contact fields on a node or comment submission form so that the person filling the form can add their contact/credit information, which is added to CiviCRM if it doesn't exist, or linked to a contact record and potentially updated if the contact already exists?

2 Answers 2

2

I'd try using civicrm_entity with entityreference.

2

If the above doesn't 'do it' for you. You can set Drupal Webforms to work on any node content, so that would be one option. Just go to eg admin/structure/types/manage/page and set Webform to be enabled.

Otherwise you could set a Drupal Webform to be a Block and expose that block in the situations where you need to catch this info. Just look in Webform tab > Form settings > Advanced Settings.

2
  • Ooh I like this! Please elaborate?
    – JohnFF
    Mar 22, 2017 at 16:07
  • Which? The webform as a Block - just look in Webform tab > Form settings > Advanced Settings. If you mean webform on other Content types, go to eg admin/structure/types/manage/page and set Webform to be enabled.
    – petednz - fuzion
    Mar 22, 2017 at 18:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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