Questions tagged [custom-fields]
Questions about custom fields in CiviCRM.
47
questions
9
votes
3answers
359 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
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
99 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 ...
4
votes
3answers
257 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 ...
3
votes
1answer
75 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
169 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 ...
5
votes
2answers
328 views
Can I customize the contact relationship tab to show custom fields?
I have a relationship type with some custom fields. Is there any way to customize the relationship tab under a contact, to display those custom fields? Instead of the default Start/End/City/State/...
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, '...
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
943 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 ...
6
votes
1answer
67 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 ...
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 ...
4
votes
2answers
173 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
265 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 ...
3
votes
2answers
347 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 ...
2
votes
2answers
357 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
173 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
232 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
61 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 ...
4
votes
2answers
43 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
144 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. "...
4
votes
2answers
141 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 ...
3
votes
2answers
78 views
Can I report data from a disabled custom field or option?
I'd like to disable some custom field fields, because we no longer want users to enter that data. But then I can no longer see the field in report filters. Is there another way I can get that data out ...
2
votes
1answer
207 views
How to get url for custom image field
I have currently created a custom field in CiviEvents to upload an image for my event. When viewing the eventinfo page I can see the image in a collapsible field which shows the thumbnail of the image ...
2
votes
1answer
329 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
3answers
75 views
Custom fields sometimes missing from profile, until flushing caches
On civicrm 5.20.1 under WordPress, we have added two custom fields to the Registration Info profile (gid=12). We've added that profile to the Online Registration config for one event.
Now and then, ...
2
votes
1answer
63 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
114 views
Custom fields in the Report Templates
I've managed to generate new fields but I can't add them into the report templates. How can I do that?
Thank you
2
votes
1answer
100 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
2answers
1k 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
94 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
1answer
43 views
How to use full unicode on custom fields
There's an API call System.utf8conversion which will change all your tables to MySQL/MariaDB's utf8mb4 format, i.e. full unicode with emoji support, rather than the incomplete utf8 implementation of ...
1
vote
1answer
62 views
Enforce uniqueness of custom field
I created a custom field on groups, which contains a string. When this string is not empty, I want it to be unique. What is the preferred way to do this? Should I implement a hook?
1
vote
1answer
64 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
57 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
105 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 ...
1
vote
1answer
99 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
180 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
113 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
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?
1
vote
3answers
68 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
2answers
36 views
Can I change settings for a custom field set for participants without losing any data?
I have a custom field set that is currently configured to be used for participants. When it was set up it was configured to be targeted to just a couple of events. We now want to make this field set ...
1
vote
1answer
34 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 ...
0
votes
1answer
148 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 ...
0
votes
3answers
192 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
0answers
203 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
1answer
47 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. ...