Questions tagged [jquery]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
33 views

Contact Quick Edit, refreshParent after CRM.api3('CustomValue', 'create)?

Stuck with jQuery, which intercepts a contact Quick Edit and updates a custom field. All is fine and a value gets updated in the database but is not immediately shown, need to click "Edit" ...
yurg's user avatar
  • 2,005
0 votes
0 answers
60 views

Using JQuery, how can I check when a popup has finished loading?

I'm trying to hide some fields on a Profile based on user input by attaching JQuery events to the form elements. So I have successfully attached a function to CRM.popup according to: https://docs....
Darren's user avatar
  • 751
1 vote
1 answer
44 views

Drupal 9 and CiviCRM 5.53, but jQuery is still 1.12.4

I am using Drupal 9 and have successfully updated to 5.53 per security advisory however libraries/civicrm/core/bower_components/jquery/dist/jquery.min.js is still showing v1.12.4 Why is this, and how ...
CiviTeacher's user avatar
1 vote
0 answers
49 views

Jquery errors after CIVI upgrade to 5.46.3

we are receiving jquery errors after upgrading to CIVI version 5.46.3 that is causing Mosaico not to load templates. I have manually readded the latest file for wp-content/plugins/civicrm/civicrm/...
SLubbinge13's user avatar
1 vote
2 answers
53 views

CRM.loadForm into div without popup

I create page where I want dynamically load different page into div. Jquery function CRM.loadForm dynamically load form, but it loads into popup. It is possible not create popup, but put the content ...
vitius's user avatar
  • 53
1 vote
1 answer
122 views

WordPress 5.9 and CiviCRM 5.46 Donation Forms JQuery Errors

After updating my CiviCRM install I have noticed I am getting the following errors in my console on pages that have my donation forms. jquery-ui.min.js:6 Uncaught TypeError: V.each is not a function ...
Denoteone's user avatar
  • 111
2 votes
1 answer
34 views

Editing RelationshipSelector.tpl section of a UserDashboard

I'm trying to edit the table row content of the "Your Contacts / Organizations" section of the UserDashboard: It appears that this section of the UserDashboard is controlled by the ...
Kurt Leadley's user avatar
2 votes
0 answers
121 views

How to fix jQuery / Ajax / Angular error?

Since an update to CiviCRM 5.38 on WP 5.7.2 we are facing a lot of strange behaviours especially with Mosaico and one recurrent error is linked to Ajax / jQuery / Angular and get error such as: ...
Guillaume Sorel's user avatar
1 vote
2 answers
36 views

Query string state/province field

On a profile listing page, you can query string to pre-select the field. e.g. add &state_province-Primary=NN where NN is the ID in the civicrm_state_province table. However, on a profile create ...
Andy Burns's user avatar
  • 3,681
0 votes
1 answer
26 views

How to prevent a form submission on a CiviCRM form with jquery?

I have a custom field set and then added to a profile, where the text input is shown based on selection of radio button via jquery. Within the profile, the radio is a required field but the text input ...
Tapash's user avatar
  • 2,972
0 votes
1 answer
29 views

CSS problems on Contact Notes View modal dialog

When viewing or editing a note attached to a contact, the dialog window displays the note content shifted far to the right. This is a new problem, but I'm not sure if it's a result of installing a WP ...
Jern's user avatar
  • 1,300
1 vote
1 answer
34 views

jquery datepicker missing (wordpress) after updating to 5.26 from 4.6.33?

A site I inherited a while back finally needed to be updated to a much more modern level including PHP version, MariaDB version and Wordpress version along with CiviCRM. Seen first in the LYBNTY ...
thomjones's user avatar
1 vote
1 answer
55 views

How can I change a cell in dataTables (custom data type tab with table) to disable the inline edit?

I need to make a change where some of the contact identifiers (extension Identity Tracker) can not be changed by the user. I can do that with the validateForm hook. But the Contact Identities are ...
ErikH - CiviCooP's user avatar
0 votes
1 answer
330 views

How to show a CSS class of a contribution form based on Stripe iFrame element via jquery?

I would like to add a jquery in my extension, as I enter the card details on the stripe, the submit button should show, otherwise hide. Since the new stripe element is served on an iFrame, I am ...
Tapash's user avatar
  • 2,972
0 votes
1 answer
29 views

How to show/hide Profile based on Price set Total on a Contribution page?

I would like to hide/show my "Custom Profile Group" based on the value of "Price Set Total". I already have an extension with this Jquery, but seems to be not working. Any help would be appreciated. ...
Tapash's user avatar
  • 2,972
4 votes
3 answers
301 views

Is it possible send a gif image correctly without breaking it?

I'm trying to create a email mosaico template with image .gif but jquery resize my image and send gif broken. Is there any option to send a .gif correctly? Thank you.
Cesar's user avatar
  • 155
1 vote
2 answers
65 views

Fetch Node data from drupal into CiviCRM

I am interested to know if it is possible to fetch node data from Drupal into CiviCRM. Is there anyway to do this? My End Goal is to to populate a "select list" with node titles from drupal and ...
Moe's user avatar
  • 521
2 votes
1 answer
53 views

Removing elements for non-admin users

There are several instances where I want to remove some buttons, inputs, tabs, etc on various screens for non-admin users. For instance, on the Event Search screen in this template CRM/Event/Form/...
Andy Burns's user avatar
  • 3,681
0 votes
3 answers
176 views

Nothing happens on selection of “Actions” dropdown options

Can someone offer me some insight as to the possible cause of the Actions drop-down not working? Here is my setup: CiviCRM 5.13.3 Drupal 7.67 PHP 7.2.16 Bootstrap subtheme set to use JQuery 3.1 ...
Tish's user avatar
  • 83
2 votes
2 answers
195 views

How can I refresh a custom data tab in the contact summary?

I want to store an email address (or phone or address) in a custom group when they are deleted. So if for contact John Doe the email address [email protected] is deleted, it is stored in the custom ...
ErikH - CiviCooP's user avatar
2 votes
2 answers
58 views

Having Trouble With Paths

I'm new to civicrm so I'm not totally sure if I'm using all the right language here. Something seems to be messed up with the way civiCRM is resolving system paths. Causing jQuery to fail in ...
Ryan Neudorf's user avatar
1 vote
2 answers
13k views

How to trigger JQuery event when drop down select list is changed in CiviCRM?

My JavaScript is triggered correctly, but I cannot attach to the change event for a drop down list in CiviCRM. The ID of the actual select element is "custom_385_14". I am trying to attach an event ...
Darren's user avatar
  • 751
1 vote
2 answers
107 views

Disable Inline Editing of Fields in Profile Form

I have created a profile where authenticated members can edit some custom fields which are part of a multivalue fieldset that I created. Everything works fine - the links to view, edit and delete all ...
Ben's user avatar
  • 946
3 votes
2 answers
102 views

Civicontribute radiobuttons without "none", where the "Other" contribution field deselects radiobuttons

This is a Theming/UI question for CiviCRM. I've done some theming to turn the radiobutton's into clickable options. When I select an amount it updates the 'Regular Amount' field. However, when I ...
Zachary's user avatar
  • 1,777
0 votes
1 answer
32 views

Efficient methods for flagging profile submissions from a contact form

Running Wordpress 4.8 and CiviCRM 4.7.19 As per a suggestion elsewhere on the forum, I created a profile for use on our 'Contact us' page (email, first name, last name, message as a multi-record ...
mzier's user avatar
  • 35
3 votes
2 answers
69k views

How to select multiple values in select2 control by jquery?

I want to select multiple options in a select2 multivalue control, when clicking a button. This is useful specially for searches where the user needs to select many option to one of the filters any ...
luciano_s's user avatar
  • 556
1 vote
1 answer
138 views

Leaflet map + Drupal Views + 400 CiviCRM contacts data = performance?

We try to pull CiviCRM contacts data incl. multiply custom fields and display on map. There are around 400 contacts to display, yet map page loads a bit slower, than expected (5 to 10 seconds). It ...
yurg's user avatar
  • 2,005
4 votes
1 answer
101 views

How can arrange custom fields so they are side by side?

I have a high number of 'outcomes' for a client in the format of 3 fields for each outcome as below: 'outcome words', date identified, date met Problem is that custom fields are formatted as one ...
Andy Clark's user avatar
  • 4,835
0 votes
2 answers
34 views

Bug datepicker field when more than one on contribution page

I have civicrm installed on wordpress I have a issue with datepicker field When i put only one datepicker field it's works well But if i insert more than one datepicker field in a form, the datepicker ...
JCF's user avatar
  • 47
1 vote
2 answers
115 views

alter/remove specific popup notifications

What's the best way to alter or remove specific popup notification messages? I have a situation where the duplicate membership warning when creating a membership from the backend is not relevant for a ...
lcdservices's user avatar
1 vote
3 answers
68 views

Haven't seen this in a while: jQuery is not defined on CiviMail 4.6.16

Yo dudes, let's get the con started with this classic! Haven't seen this beast in a while. recently updated to 4.6.16 theme Seven ran update.php after upgrade cleared Civi and Drupal cache Drupal ...
CiviTeacher's user avatar
1 vote
2 answers
2k views

CKEDITOR is undefined when form is being loaded in model frame outside of /civicrm/ path

Yet another question regarding JS resources load outside of civicrm. We load contact edit form via CRM.popup from a page outside of /civicrm/ path (from custom dashboard page created in drupal). So ...
yurg's user avatar
  • 2,005