Questions tagged [javascript]

The tag has no usage guidance.

11 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
39 views

Civi Ajax API Search by Multiple Tags

As sort of a followup to this question. I am trying to retrieve all the contacts who have tag:5 AND who have tag:7. I tried the following code: CRM.api3('Contact', 'get', { "sequential": 1, "...
2
votes
0answers
69 views

How do you select a value of an EntityRef Select2 using jQuery?

I have a scenario where a user selects a row of data to edit and I want an EntityRef Select2 box to be populated with a piece of information from that row. The EntityRef select2 widget works for ...
2
votes
0answers
36 views

Upgrade to 4.5.0 fails

I'm trying to move from 4.4.19 -> 4.6 (Old LTS to new LTS). Having trouble and not sure where to look next. Any suggestions would be appreciated. When I go to the update page /civicrm/upgrade?reset=...
1
vote
0answers
21 views

CKeditor extrange behavior: UI settings are only saved partially, and defaults load every time

I can not, for example, hide a button (spelling for example) using CKeditor settings: /civicrm/admin/setting/preferences/display?reset=1 If I hide it, I can see how it's hiding at the moment at the "...
1
vote
0answers
17 views

Assigning a php associative array to JS?

I am trying to assign a php array to js. // On the Server: CRM_Core_Resources::singleton()->addVars('myNamespace', array('foo' => 'bar')); // In the JS file or inline script CRM.alert(CRM....
1
vote
0answers
21 views

Post upgrade to 5.8, Javascripts running in Drupal are failing with CRM is not defined

Both on drupal blocks where references to CRM.$ are used and in custom javascripts that call CRM.api3, the scripts are failing and displaying an Uncaught Exception: CRM is not defined. Everything ...
1
vote
0answers
1k views

How to modify a custom field DataTable (sorting and appearance) from an extension?

I am having difficulty customising the display of a DataTable for a contact custom field group (multiple-record tab). I am trying to write an extension that would use a bit of JavaScript to interact ...
1
vote
0answers
13 views

Which javascript features can I use in CiviCRM core?

Does CiviCRM have an agreed-upon browser version to target for javascript features? For example: Can I use Object.create() (IE 9+)? Can I use 'use strict'; (IE 10+)? Can I use let (IE 11+)? Can I ...
1
vote
0answers
88 views

Why do I have an error when trying to update relationship using CiviCRM API

Since this morning I'm running into something strange when using the API to update a relationship. Here is my code : CRM.api3('Relationship', 'create', { "sequential": 1, "id": 11, "...
0
votes
1answer
20 views

Accessing fields/data from a lookup field

Does anyone here know about CRM? Accessing lookup field data (composite address field) using JavaScript? Lookup field is on Contact form. Trying to access address of Account entity
0
votes
1answer
137 views

Unable to Select Mailing Recipients

CiviCRM 4.6.10 and 4.6.11 Joomla 2.5.28 No Civi extensions installed Have tried different templates, disabling Joomla plugins, switching WYSIWYG editors, etc. Rather extensive error log in web ...