Questions tagged [custom-fields]

Questions about custom fields in CiviCRM.

Filter by
Sorted by
Tagged with
4
votes
1answer
294 views

CiviCRM API and checking if a custom field is empty rather than not null

Is there a way to check if a custom field is empty using the API? The check for 'IS Not Null' appears to work to an extent, but only if a custom field is not part of a set of custom fields, When one ...
5
votes
3answers
686 views

How do I delete an option group (civicrm_option_group)

I'm getting frustrated with googl-ing, and can't find out how to delete/remove option groups. Anyone have a simple answer? Even if I have to go into the DB and remove entries from ...
7
votes
2answers
346 views

How to get the new record ID, when adding a record to a multi-value custom field using the API?

The API calls I know of that add a record to a multi-value custom field, don't return the ID of the added record (which you can then use to access the value for the specific record in the form ...
2
votes
1answer
76 views

Participant Custom Data not saving

I have created custom fields for a site. All of them work except those connected to Participants. When data is entered into the backend, data will not save, and no error is issued. The fields also ...
1
vote
3answers
57 views

How to add extra date in contribution template? or best way to do it?

We have 10 Financial Types and different online contribution based on those. I need to add an extra date field in contribution such as "Date of sponsorship". I have already created 10 different ...
1
vote
2answers
273 views

How to view CiviCRM Event Participants Custom Participant Fields?

We have an event and need to track any special dietary needs for attendees. I have created a custom field 'Dietary Needs' for event participants. This works as expected. HOWEVER, the only way that I ...
1
vote
1answer
178 views

Token not evaluating in CiviMail

I have a token for a custom field in my email template, but its not being replaced with the value when the email is sent. What's wrong? How can I fix it?
3
votes
2answers
176 views

How do I add custom fields to Personal Campaign Pages

I bet that's a question that some people have asked before! The answer is you can't currently. But how would someone add this capability?
3
votes
1answer
125 views

Custom code that sets custom field value stopped working in 4.6

I have some code in a custom module (in the civicrm_pre hook) that sets a custom field value, using the function CRM_Core_BAO_CustomValueTable::setValues Here's a print_r of the parameters it is ...
1
vote
1answer
77 views

Scheduled reminders based on a custom field on an activity

I know that in CiviCRM 4.6, the ability to send scheduled reminders to people based on a custom field (e.g. marriage date) was added. However, I'm unsure if it's possible to send a scheduled reminder ...
5
votes
2answers
910 views

How to add custom fields to membership report display columns?

We have a set of custom data for memberships. One field is 'radio' type for newsletter delivery preference: online, paper, both, none. We can filter on this custom field in membership reports no ...
3
votes
2answers
78 views

How to create file type custom data with API?

I was wondering how to do that. Didn't find it for that type of custom data. If possible I want to do it via API, if not possible i'll try with CRM_Core files.
5
votes
2answers
147 views

Is there a way to add a custom field to the Inbound SMS activity type?

I'm working on a Drupal site that includes a view showing unanswered SMS messages. The view shows activities of the Inbound SMS type that have not been revised or deleted, plus a custom PHP filter ...
4
votes
2answers
345 views

CiviCRM API with Custom Data mixed with Standard Entities

I'm using CiviCRM 4.6 with the new API editor. I'm attempting to chain a bunch of queries together, which provide cases for a client within a period, along with the linked contact, along with custom ...
3
votes
2answers
346 views

How can we make Event custom fields available as tokens for scheduled reminders?

We've done some investigation and found two places we could intervene to make this possible: Intervene here: CRM_Core_BAO_ActionSchedule::sendMailings(), but to make tokens available we'd have to ...
6
votes
3answers
629 views

How do I use custom fields in Drupal views?

[EDIT] Totally editing this question. Custom fields do not work in my Drupal views, at all: The interface to add the custom field worked just fine. It's only the generated sql thats wrong. Its ...
4
votes
1answer
63 views

How can I manage the drop down field lists in Search Builder?

I upgraded a site from 4.2 to 4.4. They use Search Builder to run specific searches against custom data, and build quarterly reports. Previously the field list in search builder was grouped by data ...
2
votes
2answers
130 views

Why is format returned for multi-select custom field API different for Contact vs. Relationship?

I have contacts with an Alphanumeric/CheckBox custom field on, and I have relationships with an Alphanumeric/CheckBox custom field on. (The former is legacy and is copied into the latter.) These seem ...
3
votes
2answers
123 views

How to decide between using a custom Relationship and using a custom Contact Reference field?

This is admittedly open-ended any may just depend too much on use-case. I am looking for advice on when it is preferable to create a custom Contact Reference field instead of just creating a custom ...
3
votes
1answer
196 views

Example of adding multi-record custom fields to a contact via API

When I attach a multi-record custom field group to a profile for contribution pages, Civi only allows visitors to enter the fields once. I've read through jira a bit and see that the capability isn't ...
16
votes
5answers
1k views

Collecting Facebook, LinkedIn profiles

Collecting Twitter handles from users is straightforward: create a custom field, ask for the handle. But collecting links to Facebook or LinkedIn profiles is more tedious, since most people don't ...
6
votes
7answers
941 views

How can I add/rearrange custom fields in the default contact view template?

We would like to rearrange the output of custom fields on the basic contact view page (in Drupal, /civicrm/contact/view?cid=NNNN&reset=1) in CiviCRM 4.5 on Drupal 7. Specifically, since this is a ...
7
votes
4answers
735 views

What is the correct way to work with custom data in the API?

I always seem to struggle to find a concise way of working with custom data via the API. I know that something like... $updateParams = array('version' => 3, 'contact_id' => $contact_id, '...
3
votes
1answer
251 views

What should be best practice when creating custom fields?

When creating custom fields, and custom field groups, I have fallen into two pit falls. First, the name of a custom field should not exceed a certain length, causing malfunction in the SQL structure. ...

1
7 8 9 10
11