Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [custom-fields]

Questions about custom fields in CiviCRM.

9
votes
3answers
288 views

How do I add a new table to my extension?

I have added tables to my database by writing SQL commands in a sql folder as specified in the given link. Add a database upgrader / Installer / uninstaller. What I am exactly looking for is a ...
5
votes
2answers
189 views

How do I allow custom date field over 10 years ago?

Civi 4.7.3 and Wordpress 4.4.2 Since upgrade from 4.7 to 4.7.3 I cannot seem to add a custom date field and allow the user to select a date older than 10 years ago. Recreated on Demo site: Click ...
5
votes
2answers
126 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 ...
3
votes
2answers
91 views

How and when should I create custom data fields?

I need at least 50 different "categories" or "custom fields". Everything from Contact Info like Name, Address, etc. to specific information that I would have to uniquely name. I am getting extremely ...
3
votes
1answer
66 views

checkbox import problems

Right now I have a custom data set set up that has 3 custom fields inside of it. Inside each custom field is a list of options that can be checked. (checkbox is the option) In my spreadsheet that I ...
1
vote
0answers
143 views

How are multiple record custom fields handled in Drupal webforms?

Can't find anything on this from my searches, so thought I'd put the question here: If I use fields from a multiple-record custom field set in a Drupal webform via the webform_civicrm integration ...
6
votes
1answer
59 views

CiviEvent - Search by custom field

The situation I added a custom field to CiviEvents called regio (means region in English) and I want to be able to fetch CiviEvents by this field. I'm on CiviCRM 4.6.6 and Wordpress 4.2.2 The ...
6
votes
7answers
879 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 ...
5
votes
2answers
797 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 ...
5
votes
2answers
97 views

Attach pdf file civicrm_api3

i need help, i'm trying to attach through civicrm_api3('Attach', 'create'..) a pdf file, passed with a rest call as simply text: %PDF-1.3 1 0 obj << /Type /Catalog ... ecc . The attach works, ...
3
votes
2answers
223 views

multi-value import issue

I created several custom fields & groups but I am not seeing all of them when I try to import my contacts. Like I have a few custom sets/groups and custom fields within each. But only one set is ...
2
votes
2answers
327 views

field like “Current Employer” that creates new organization and relationship

Is there a way to create in a new custom field the functionality in an Individuals "Current Employer" field? For example, trying to create a generic "Organizational Affiliation"... How to create the ...
2
votes
1answer
154 views

Multi-value fields in profiles - how to?

When I add a multi-value custom fields to a profile, Civi only allows visitors to enter the fields once - as a simple fields. How to configure custom fields and profile to get form with multi-field ...
2
votes
2answers
189 views

How to set a custom country field using the API

Some fields that are stored as id references to other tables can be set by simply passing the value as an id, e.g. setting gender_id=Male works. I have a custom fieldset attached to contacts that ...
1
vote
1answer
57 views

Why after importing contact records were Addressee field values set to “Customized” for records where Custom Addressee had a null value?

I imported a large group of organisations into a sub-org group "Media". Some orgs had a specific generic addressee (ie, Editor) which I imported into the Custom Addressee field. After import I ...
5
votes
2answers
105 views

Option Values with problematic Values

I'm getting this status message: The Following Option Values contain value fields that do not match the Data Type of the Option Group It references an Option Group and a option value of "No". The ...
4
votes
2answers
40 views

How to display custom fields 2 fields in row, instead of new line for each field

I'm new to civiCRM, I tried to search but didn't find an answer, although I feel that my question is naive
4
votes
1answer
110 views

Error on activity import: “'1' is not a valid option for field custom_42”. Can I find which field this is referring to through the admin interface?

I am importing custom activities (with some custom fields in them) and getting "'1' is not a valid option for field custom_42." The problem is that I can't figure out which field it's referring to. "...
3
votes
1answer
54 views

What are the files and fields in CiviCRM?

An organization I volunteer for is considering this software solution. I need to see the files and fields in those files to see how they match to our current system. A brief description of the purpose ...
2
votes
1answer
78 views

Multiple values for custom fields in Activities?

Anyone has seen any custom implementation/extension of custom group multiple values for Activities? Since we are using Activities for many different scenarios, many times the requirement of having ...
2
votes
1answer
298 views

How to use the API to query custom fields on activities?

Looking at the API explorer on the demo site it appeared that it's possible to query custom data on activities using the API. However it seems that while the UI helps you select custom fields and set ...
2
votes
2answers
988 views

How do I pass a variable to a smarty template?

Big picture: I'm working on a module that will display view-only custom data on a specific contribution page. Please understand, if you're not aware of this already, view-only custom data is not ...
1
vote
3answers
85 views

Different search results in Adv Search vs Search Builder

We upgraded yesterday from 4.5.8 to 4.6.5 (with Drupal 7.38). We have a number of custom fields for Individuals which are type multi-select (child's grade in school, marital status, etc.). When we ...
1
vote
3answers
55 views

Notes about participants

We need to fill some information about people that registered to specific event, for example room number where they will stay. Is it possible to store additional information about participants so that ...
1
vote
1answer
22 views

How to report on repeating custom fields

My client wants a report on a set of 10 repeating custom fields, each one of which has a date and one of a set of outcomes. e.g there is an 'Accommodation' custom field which has 2 fields - a date and ...
1
vote
1answer
169 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?
1
vote
1answer
101 views

Extending default search for name to consult a custom field

How would it be possible to hook into civi's searches to always lookup a custom field when searching for name? Background: In our setup we handle big departments as distinct contacts. Their name is ...
1
vote
1answer
51 views

Formatting of formatted text in print case and activiy audit

I'm sure this shoudl be fairly straight forward. I think i'm looking in the wrong place. When I try to print the report of a case (civicrm/case/report/print?) or undertake an activity audit of a ...
1
vote
1answer
95 views

How to target record id for multiple record custom field set in Webfom?

Drupal 7.40 Webform-Civi Integration 7.x-4.13 Similar to Graham's question here. Use case: Setting up goal plans that look like this: Long-Term Goal 1 Short-Term Goal A Short-Term Goal B Short-...
1
vote
2answers
146 views

Custom fields for invoice / PDF

I know that sticking in a contact-related custom field to the invoice template is just "contact.custom_xx" (where xx = custom field id). We're trying to do the same for a Contribution-related custom ...
1
vote
1answer
58 views

System status notice about option value 0 in number field

I'm getting this System Status notice: The Following Option Values contain value fields that do not match the Data Type of the Option Group It references an option group with 0 as one of the values. ...
1
vote
1answer
77 views

help needed in importing multi value custom fields

For the below custom fields, suppose a contact has two UG degrees B.Tech, BBA and two PG degrees M.Tech and MBA, I want to add additional set of custom field set, and then add the second degree. Like ...
0
votes
3answers
178 views

Set custom field during Membership signup through a Contribution Page

I need to save some additional information related to the membership during sign-up. This will be stored in custom fields of the membership. Sign-up (Membership creation) is happening through a ...
0
votes
1answer
43 views

Using custom fields to store secondary addresses

As of now only primary address of a contact is searchable in advanced search. Search is not possible for other addresses of the same contact. So I want the other addresses of contact also searchable. ...
0
votes
0answers
176 views

Contribution email receipt with custom fields shows array in template

Using default contribution receipt message template, the receipt email shows "array" rather than custom field values. It works correctly if no custom fields are used in profile. This seems like this ...
0
votes
3answers
154 views

How to create Drupal View of Participants with custom fields

I have events with custom fields. I want to show participants with the corresponding custom fields in a View. I can't find how to retrieve custom datas. Is somebody have already created this kind of ...
0
votes
1answer
42 views

How do you set the displayed text of a custom field (“view-only”)?

I am using Drupal and I have an extensions that I am running this code on. I've seen several threads attempting to help with this. I haven't found any that really make it clear. From what I ...
0
votes
1answer
75 views

MySQL Query to return all custom values

Any MySQL Civi Gurus out there that know how I can create a query to return all custom value fields with their value per contact id? I know how to get the occasional custom value, but i need the ...