Questions tagged [angular]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
9
votes
5answers
400 views

How to change mailing form and set the default value for url_tracking to false?

Is it possible to alter the mailing form? I want to set the default value for url_tracking to false. Usually I would write a hook_civicrm_buildForm and set a custom default value but this hook is not ...
7
votes
1answer
164 views

Are we going to switch to angular 2?

Angular has a new shiny version that seems to offer several new features and a faster experience. https://angular.io/features.html https://medium.com/google-developer-experts/angular-2-introduction-...
6
votes
4answers
1k views

Status page angular load error

I've just upgraded a test site from 4.7.15 to 4.7.21 on Drupal before going live. The System Status page isn't showing as expected and the console has this log: GET failed for ..../sites/mysite/...
6
votes
3answers
132 views

Unable to load AngularJS pages, e.g., CiviVolunteer and CiviCRM status page

The following links in the CiviCRM admin menu don't work for me: Volunteers > New Volunteer Project Volunteers > Manage Volunteer Projects Volunteers > Search for Volunteer Opportunities When I ...
5
votes
2answers
369 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 ...
5
votes
1answer
81 views

How to set default for 'Unsubscribe Group' in civimail

Do a search using 'Find Contacts' Select a few and choose task 'Email - schedule/send via CiviMail' How do I set default value for Unsubscribe Group? Any help is much appreciated.
5
votes
1answer
143 views

What is the mechanism for tailoring an Angular form?

I want to modify the behaviour of an Angular form. The answer to question 4700 tells me 'how' to do it (add some JavaScript), but I'm interested in 'where' to do it. If it was a PHP form I could use ...
4
votes
1answer
326 views

Adding dynamic data in CiviMail angular template

I have developed an extension which adds the possibility to add attachments to a message template. When a user select the template in CiviMail the linked attachments are also sent. This is working ...
4
votes
1answer
117 views

How to set page title in an angular page?

I have created an angular page and module and it does exactly what I wanted it to do. However the page title is CiviCRM and I want to change that. How do I do that? I have tried to set it in the ...
4
votes
1answer
60 views

How do I set default values in afform?

I'm working on my first afform extension. I've built a form, which works! I can submit values and create a contact. However, I can't figure out how to pre-populate with default values. This is pretty ...
4
votes
1answer
470 views

Status Error and blank status page

On our CiviCRM deployment, running 4.7.23, it says System Status: Error in the footer. When clicking the System Status: Error link, I get a blank page with the following console errors (url redacted): ...
4
votes
1answer
67 views

How to manage AngularJS dependencies within an extension

I'm creating an extension and using AngularJS within it. I've found a 3rd party AngularJS library that I'd like to use in my extension (in this case ngInfiniteScroll). What is the proper way to make ...
4
votes
1answer
100 views

modifying angular form (new mailing)

I'm wrestling with where and how to best make modifications to the CiviMail new mailing form, built with Angular. There are several other questions addressing this in part, but none address my needs ...
4
votes
0answers
201 views

How can I put an AngularJS page inside a crm-popup modal window?

If I add class="crm-popup" to an internal hyperlink in CiviCRM, I can make CiviCRM open the target page inside a modal dialog. Cool! But if the target page is an AngularJS page (e.g. /civicrm/a/#/...
4
votes
0answers
87 views

Angular Error: Module 'crmMailing' is not available! When CiviMail is enabled

We are running a Bitnami Stack for CiviCrm and Drupal on our own local VM server. https://bitnami.com/stack/civicrm Our versions are CiviCrm 4.7.13 Drupal 7.52 I grant access to CiviCrm features ...
3
votes
2answers
285 views

Which version of Angular/AngularJS does CiviCRM use?

I'm working on learning Angular/AngularJS for use with CiviCRM and confused about which version I should be learning. How can I see which version CiviCRM is using?
3
votes
1answer
123 views

Add field on Case type form

I want to add a field on Case type setting (civicrm/a/#/caseType/1 which is build in angular js) either just below the description field or as a tab besides case role tab. What is the easiest way to ...
3
votes
1answer
78 views

"Unknown path" when viewing a newly generated angular page

I'm trying to get started learning how to make Angular pages within a CiviCRM extension so I ran civix help generate:angular-page and read some help text about an example. Cool. Then I ran civix ...
3
votes
0answers
83 views

Should I use implicit annotation for AngularJS dependency injection?

I am learning AngularJS and have read that it supports three different ways to specify dependencies. Their docs say that inline array notation "is the preferred way to annotate application ...
2
votes
3answers
391 views

System Status Page Blank after Upgrade

After upgrading from 4.7.31 to 5.2.0 the system status page is blank. I made sure the Directory and Resource url settings match; I cleaned up caches and reset paths; I disabled the Asset Cache; no ...
2
votes
2answers
106 views

CiviMail: Can only write new mailing in debug mode (SOLVED)

I've got the problem, that after an upgrade to the newest CiviCRM version (4.7.23) on WordPress, I can only create a new mass mailing when debug mode is enabled. When it is disabled, CiviCRM gives me ...
2
votes
1answer
103 views

How to set permissions on an angular page

I have developed a basic angular page and forms which stores data in the database. However the data stored are settings and should only be accesible when a user has a permission for Administer CiviCRM....
2
votes
1answer
85 views

How do HTTPS settings interfere with CiviMail?

I have CiviCRM sites (5.12 and 5.13 on Drupal 7 with Aegir 3) where the behaviour of CiviMail initialisation (and the admin status page) depends on particular HTTPS setup: finishes or loops infinitely....
2
votes
1answer
77 views

Append an option to the BlockSchedule Directive in crmMailing

I'm making a first foray into customizing the mailing compose screen. I want to add a third option to the options in BlockSchedule.html (schedule.mode = regular) which will open up a few more options ...
1
vote
2answers
192 views

Unable to create a new mailing

I am editing this question to provide more information. I am running CiviCRM 4.7.8 with WordPress 4.5.3. We are using php 5.6.23. When selecting "New Mailing" from the "Mailings" menu, the screen is ...
1
vote
2answers
52 views

Angularjs called from an extension?

Good morning from Canada. I am trying to create an extension with angularjs forms. I have followed the development guide and have created the angularjs page but I cannot get it to display in CiviCRM....
1
vote
1answer
501 views

How can I link to a specific tab in crm-ui-tab-set

With AngularJS, I have a page (created with civix generate:angular-page) that includes a set of tabs like so: <div crm-ui-tab-set> <div id="mytab1" crm-ui-tab crm-title="ts('Tab 1')"&...
1
vote
1answer
36 views

Accessing selectedMail in a new controller

I've created a new angular controller angular.module('crmMailing').controller('crmMailingRecurScheduleCtrl', function($scope, $filter) { I'd like to have access to the selectedMail object that ...
1
vote
0answers
14 views

Angularjs - Loading form in popup

I've seen some old questions about this with limited response so I'm hoping I get better responses with this question. I have an angular form that grabs a bunch of baseline information, and has a ...
1
vote
0answers
2k views

ngChange event fired twice when using multi-select with crmUiSelect

I'm trying to use CiviCRM's crmUiSelect AngularJS directive to create a select2 element in a form. I want to call a function in my controller when the user changes this element, so I'm using the ...
1
vote
0answers
181 views

Problem in CiviMail after upgrade of CiviCRM 4.5.4 to 4.7.10 in Joomla 2.5.28

I have recently upgraded CiviCRM 4.5.4 to 4.7.10 latest stabled version. I can't select any recipients from CiviMail recipient dropdown, when I select a group, the field label goes red and it ...
0
votes
1answer
17 views

Using a dropdown box for selecting stateprovice?

I'm trying to change some forms from quickforms to angularjs. In quickforms you do this: $this->addEntityRef('Location_province', ts('Select Province'), ['entity' => 'state_province',]); How do ...
0
votes
1answer
38 views

Why are my Actions drop downs not working post civicrm security update?

After the CiviCRM security updates - some of our D8 sites are throwing blanks when selecting an Action -> on e.g. the Search -> Contacts Results screen. Select Contacts -> Select Action -> ...
0
votes
1answer
15 views

Router problem. AngularJS on Jooma

I'm trying to learn AngularJS with CiviCRM and I am doing the tutorial found here. After completing the tutorial, I navigated to http://localhost/Joomla/administrator/index.php?option=com_civicrm&...
0
votes
1answer
14 views

How best to use crmApi result within angularJs controller?

Referring to the snippet below, how do I get the controller function (DashboardController) to 'wait' for the return from crmApi? I've debugged enough to know crmApi returns the results I like, but ...
0
votes
1answer
965 views

Multi-select not working with crmUiSelect AngularJS select2 directive

I created a select2 element with CiviCRM's crmUiSelect AngularJS directive by using the following code in my controller: $scope.options = [ {"value": "foo", "label": "Foo"}, {"value": "bar", "...
0
votes
2answers
120 views

CiviCRM upgrade to 4.7.21 (Drupal 7)

I am using Drupal 7.56 and have just upgraded from CiviCRM 4.7.20 to 4.7.21 with a number of significant issues that will require that I revert to 4.7.20. When I try to display System Status - Warning ...