Skip to main content
Share Your Experience: Take the 2024 Developer Survey
5 votes

How to create a Drupal View with multiple CiviCRM relationships?

This is an update to the answer given by petednz - fuzion. In my case I needed to create a view which showed a list of all employees of the organisation employing the currently logged in employee. In ...
Ben's user avatar
  • 946
4 votes
Accepted

CiviContribute/CiviCRM overrides content entered into a custom field each time a donation is made

It sounds like your custom fields are on the contact record. If you create custom fields on the contribution instead then you avoid the problem.
Aidan's user avatar
  • 13.5k
4 votes

Recipes for managing contacts who leave companies (Drupal)?

The simplest approach would be to block the Drupal account, no other action is required. If you must delete the Drupal account for a given reason, make sure you select ‘Delete the account and make its ...
Anil's user avatar
  • 2,008
4 votes
Accepted

API error: 'afform_type' is not a valid option for field option_group_id on OptionValue.create( entity name form)"

I found the same issue with two extensions on my site: Form core (aka afform) and Search kit. I checked my database and in the civicrm_managed table there were references to the option group, but the ...
John's user avatar
  • 1,922
3 votes

Error upgrading to 5.65

Apply this patch https://github.com/civicrm/civicrm-core/pull/27354 until a fixed release is out.
Demerit's user avatar
  • 23.1k
3 votes

Search Kit with an auto toggle

I think you're looking for the Auto-run setting that appears on the search display edit page (not the compose search page). Add a display to that search (using the Add dropdown at the left) and then ...
Demerit's user avatar
  • 23.1k
3 votes

Drupal 7 update breaks CiviCRM

SOLVED. Here's how... • revert to saved version of website • update "Webform CiviCRM Integration" module • update all modules Civi uses... Chaos Tools, Views • update drush version from 7.4....
jcalvert's user avatar
3 votes

Menu problem when web host upgraded from CPanel to Site Tools

I replaced the full URLs in the civicrm.settings.php file with relative URLs as shown below: FROM global $civicrm_root; $civicrm_root = '/home/customer/www/example.org/public_html/sites/all/modules/...
timindaburgh's user avatar
2 votes
Accepted

CiviCRM Search not working

Lots of folks are responding in the comments, but I'll try to give a non-technical answer. Short Answer: You need to upgrade CiviCRM. Longer Answer: CiviCRM is written in a programming language called ...
Jon G - Megaphone Tech's user avatar
2 votes
Accepted

IATS can retry failed donations 7 days after the failure?

The retry attempt on REJ response is dependent on the type of failure. Card Reported Lost or Stolen e.g. will be bumped to next month - whereas other failures will attempt next day. Note that you can ...
KarinG - Semper IT's user avatar
2 votes

How does one override print.css (Drupal 7 / CiviCRM 5.36.x)

I think you can use addStyle or addStyleUrl or addStyleFile methods eg: function extensionname_civicrm_config(&$config) { if (!empty($_REQUEST['snippet']) && $_REQUEST['snippet'] == 2) { ...
Pradeep Nayak's user avatar
2 votes
Accepted

MariaDB "underlying table doesn't have a default value" on event creation

It's a known problem that mariadb isn't very usable with multilingual with STRICT_TRANS_TABLES. There's a thought about how it could be solved at https://github.com/civicrm/civicrm-core/pull/22647#...
Demerit's user avatar
  • 23.1k
2 votes
Accepted

Is it possible to pre-fill a checkbox field using URL parameters? Fields are from CiviCRM

I have done this via two different methods. One method is using a 'pass-thru' field. I create a webform only text field (it does not need to exist in CiviCRM custom data) and have it pre-fill based on ...
RayWright's user avatar
  • 2,488
2 votes
Accepted

How can we prevent contact record overwrites once and for all?

It sounds like you might want to try out the No Overwrite extension, which makes the contact's name read-only on forms. We've been using it for quite a while - it really helps cut down on this kind of ...
Lars SG's user avatar
  • 4,073
2 votes
Accepted

Drupal 7 Views broken with upgrade to CiviCRM v5.69.2

Solved: For reasons that are still a mystery to me, installing the Drupal module civicrm_entity resolved this. The site has been running for years through many CiviCRM updates and this is the first ...
AlexT's user avatar
  • 81
1 vote
Accepted

Error executing task "Update civicrm_mailing_event_queue to permit deleting records from civicrm_mailing_job"

It means you have some records in the event queue that don't have a corresponding job. Probably the job got deleted at some point so I wouldn't be worried about that field and would just clear them ...
Demerit's user avatar
  • 23.1k
1 vote

How to target Drupal CSS Injector rule at a CiviCRM profile, using query string paramters

To answer my own question, I looked a bit harder and found that there is a suitable css class in the html: <div class="crm-contribution-page-id-6 crm-block crm-contribution-main-form-block&...
Tom Rosenbloom's user avatar
1 vote

How to target Drupal CSS Injector rule at a CiviCRM profile, using query string paramters

It's certainly something you can do, but as you probably realize it's fragile, hard to maintain and hard to test, so not a great idea if you can avoid it. You could do something like: <?php $url = ...
Lars SG's user avatar
  • 4,073
1 vote
Accepted

Payment forms fail with "Unknown api version"

Do you have https://civicrm.org/extensions/contribution-transact-api installed? You need that now if using webform with contributions.
Demerit's user avatar
  • 23.1k
1 vote

With webform_civicrm, how to add contact2's lineitem info into Registration Confirmation and Receipt template

I tend to send two receipts out for this -> one confirmation email triggered from webform: you have all webform submitted values available as tokens to compose an very email with perhaps including ...
KarinG - Semper IT's user avatar
1 vote

Upgrade drupal 7 to backdrop

@Catorghans, starting a community wiki here with your response on the Backdrop Zulip chat (feel free to edit/expand): Yep, this is a working procedure: first create a civicrm.settings.php in backdrop-...
1 vote
Accepted

Increase autocomplete dropdown limit for existing contacts? (webform)

The limit of 12 is hard-coded in the webform_civicrm module. You can find the line here https://github.com/colemanw/webform_civicrm/blob/8276d951fc1ab00e3b6b989fb3f2b594d41ba3a9/includes/...
Kainuk - CiviCooP's user avatar
1 vote
Accepted

Webform Civicrm Custom Fields across Multiple Contacts not working in Drupal 7 and Drupal 8

Re -> Tab with Table style are these Multi value custom fields? We recently fixed a bug re: such custom fields in WFC D8/D9 and backported it to D7. What versions are you using? Are you able to ...
KarinG - Semper IT's user avatar
1 vote
Accepted

Updating CiviCRM Module in Drupal 7

Check what settings you have for CIVICRM_MEMCACHE_PREFIX in your civicrm.settings.php file. You can't define a constant more than once. Maybe copy/paste the relevant sections into your question. Don'...
Aidan's user avatar
  • 13.5k
1 vote

Does Drupal 7 "CiviCRM Entity" online event registration generate confirmation email?

Assuming you used the Price Set Entity field to get the registration form. The confirmation email was never fleshed out totally. There are also 2 Rules Events you can react to: "Event ...
jackrabbithanna's user avatar
1 vote
Accepted

Online registration error

As said by @demerit you will need to enable online registration for the event. You see the option for turning on online registration under 'Online registration' tab of event.
Pradeep Nayak's user avatar
1 vote

Custom Field for CiviCRM Membership not accessible from Drupal Rules module

There are a few things you can try here: Go to CiviCRM's Administer menu >> System Settings >> CMS Database Integration. Compare the array there against the one listed in settings.php. ...
Jon G - Megaphone Tech's user avatar
1 vote

Reason for no Views Relationship from CiviCRM Contact to Event Participant

We do have D7 VBO Views like this for clients -> key is to start with a CiviCRM Participant View - so that the base table is civicrm_participant - from there you can add a Relationship to the ...
KarinG - Semper IT's user avatar
1 vote

How to get a CiviRule to fill in a custom field upon a webform submission?

One option is to use https://www.drupal.org/project/webform_conditional_values with Webform-CiviCRM integration if the ID is known before submission. If it's not available until after submission, you'...
Jon G - Megaphone Tech's user avatar
1 vote

How to get a CiviRule to fill in a custom field upon a webform submission?

You will probably need to develop an action that can take that ID from the data coming into the action and set it. There is a standard action to update a custom field (Set Custom Field) but it will ...
ErikH - CiviCooP's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible