Hot answers tagged

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 ...


2

Are they in the administrators group? Since then you might be able to do something like (untested): CRM.api3('GroupContact', 'get', { "contact_id": "user_contact_id", // use this exact string to mean current user "group_id": "Administrators" }).then(function(result) { if (result.count == 0) { // Not in the admin group // ** do your removal ...


2

I would use calculateTotalFee() to check if total amount is > 0. CRM_Core_Resources::singleton()->addScript(" CRM.$(function($) { hideshowMainProfile(); $('#priceset [price]').bind('change keyup click blur', hideshowMainProfile); function hideshowMainProfile() { if (calculateTotalFee() > 0) { $('.crm-public-form-item.crm-...


1

Turns out it was a CSS conflict with the Woocommerce Event Manager plugin in WordPress. In fact it was affecting the formatting of many different modal dialog windows in CiviCRM, not just the Contact Notes dialog. In case anyone's interested, I tracked it down by opening the misbehaving dialog in CiviCRM, then used Chrome -> Developer Tools -> Elements ...


1

Never mind - all working now. I modified the CiviCRM Resource URL from the default that was in there of [civicrm.root] to be the full URL http://example.com/wp-content/plugins/civicrm/civicrm and the choice of 'Choose Date Range' showed up in the drop down giving the functionality needed. Or it is entirely possible that Choose Date Range was there the whole ...


1

You can use the Stripe element events to trigger something - see https://stripe.com/docs/js/element/events We do that in the Stripe extension here: https://lab.civicrm.org/extensions/stripe/-/blob/master/js/civicrm_stripe.js#L281 There are some useful CiviCRM/Stripe extension events which help with frontend integrations and we are open to adding more: ...


1

The issue is with the intervention library used, which doesn't support animated GIFs. The intervention bug is 5+ years old. While intervention is open source, the maintainer is mostly inactive, and hasn't released the source code of his new version, which he's been working on for years. I think it might be time to remove intervention from Mosaico. Note ...


1

Did you find an answer to your question? It seems that the platform does not accept the .gif format. Admin support and I figured it out... kinda: It works if you use the "traditional" email. The Mosaico version seems to strip the gifs away. If I view the resulting email through our standard email reader, it moves. If I view it through outlook, it does not....


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