Questions tagged [javascript]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
2answers
569 views

Refresh page after closing modal opened by .crm-popup outside of CiviCRM

We've a page (in Drupal) outside of CiviCRM for "editors" (mean, users with restricted permissions) to perform some civicrm tasks. From this page civicrm forms is being opened in modal frame via ....
4
votes
1answer
121 views

CiviCRM Ajax API - Searching by Tag

I'm working with the CiviCRM API and it's been great--I've been able to make a very useful tool for our team. However, I've encountered a problem. I would like to do a search on contacts based on ...
5
votes
2answers
224 views

How to get contact id of logged-in user in JS API

Sorry if I'm being thick here, but I've looked and looked. Is there an API call to get the contact id of the logged-in user? What I need to do is check whether an activity has been authored by the ...
3
votes
2answers
46 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 ...
2
votes
1answer
38 views

Requiring “Assigned” and “Target” contacts when recording Activity

When creating a new Activity record, I need to require the "With contact" and "Assigned to" fields have a contact selected. In the activity/form/activity.php file I can add 'required'=>TRUE to the ...
2
votes
1answer
1k views

How can I trigger a selection for a Select2 EntityRef element via javascript?

The CiviCRM EntityRef form element uses a Select2 select box to make lots of CiviCRM forms more awesome. A user can, for example, search for contacts to choose one. Great. I am building an extension ...
1
vote
1answer
53 views

Javascript Contact API - how do I 'do something' with results

Through javascript, I was hoping to check what groups a user belongs to and then use that information to show / hide something. I can't use ACLs because I'd like the average internal user to be able ...
1
vote
3answers
183 views

Backbone javascript conflict causing Configure Event / Repeat to fail

Problem with a Civi 4.7 installation on WordPress 4.7.2 -- due to other complications involving Backbone, we are NOT running JetPack. I found a related question in CiviEvent 4.7.7 Issue with ...
1
vote
2answers
323 views

Backbone JS error with 4.6.4 on WP messing up contribution page set up

It feels inappropriate posting this on Stack Exchange, but I don't see any other viable option since the support forum has been deprecated and no-one goes there any more, so here goes: Just upgraded ...