Hot answers tagged

2

As I haven't seen your code, I can only suggest what worked for me: function myext_civicrm_fieldOptions($entity, $field, &$options, $params) { if ($entity == 'Contribution') { if (isset($field) && $field == 'mycustomfield_123') { $myArray = [ 1 => 'Title 1', 2 => 'Title 2' ]; $options = $myArray; ...


2

I wasn't able to figure this out so data is Fetched directly into CiviCRM. However, I ended up using Drupal EntityQuery and fetched the data into a webform then Used Javascript PopUp Feature and parsed the data back into the CiviCRM form using Jquery. Thanks


2

On which forms do you wish to add the fields/logic? I feel like there are two questions here: 1) How to build an arbitrary list of options from a third-party source of data (Drupal) 2) How to set the value of one field based on the value of another fields. For (1), arbitrary lists, you can look into hook_civicrm_fieldOptions, which can dynamically modify ...


1

MySQL 8 isn't officially supported yet. This particular problem should be fixed in 5.23 though since it's the word "groups" that mysql 8 doesn't like - see https://lab.civicrm.org/dev/core/issues/1143 and the more general https://lab.civicrm.org/dev/core/issues/392


1

I believe the standard workflow for accounting requires a single currency per batch. At least that was all that we aimed to support. Please create an issue at lab.civicrm.org indicating that there should be a 'friendly' error message preventing transactions that have a different currency from ones already in the batch from being added. This should include an ...


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