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.

1
vote
1answer
26 views

Validation radio custom fields on civicrm_validateForm hook does not work

I have a custom field on contact in radio type format, not required field. I'd like to set up custom error on this field by using hook_civicrm_validateForm when the field is null. // hook in ...
1
vote
1answer
25 views

CiviCRM report for Case activities listing Case data

I would like to generate an Activities report (eg upcoming scheduled activities) which includes case data (eg case ID, case Subject, case Role contacts, case custom fields) of the case to which each ...
1
vote
1answer
21 views

How can I add Option Group for custom data field in CiviCRM

I'm trying to create an option group for a custom data field. It needs to be a multi-select dropdown. How can I build in CiviCRM Eg <select> <optgroup label="Accommodations"> <...
1
vote
1answer
25 views

Why does API get participants return all custom fields together with the specified return field?

When I do this: $result = civicrm_api3('Participant', 'get', [ 'sequential' => 1, 'return' => ["custom_14"], 'event_id' => 3, ]); In the results I get the desired custom field, but I ...
1
vote
1answer
22 views

DB Error: No such table - custom fields

Below are log entires telling me what I know, but do not know how to resolve. In reformatting custom data set, via import and export via phpmyadmin (need to switch from text to number field type), I ...
1
vote
0answers
46 views

Can't access custom fields used in event registration

Versions: Drupal 7.63 CiviCRM 5.9.1 Custom Fields: Created custom fields with Field Type of Autocomplete-Select with lookup for following fields: Institution Area of Study Year of Graduation Used ...
2
votes
1answer
33 views

Custom Fields Table

I am having issues when working with Custom fields, that the CRM gets frozen, and have to restart everything. Today I noticed that the MySQL table log_civicrm_custom_field has nearly 140K rows, while ...
1
vote
1answer
29 views

Offline Contribution receipts does not contain custom fields information

Currently using CiviCRM 5.9.1 and drupal 7.63 Contribution receipts works as expected if the checkbox to send receipt is checked while creating offline contribution. Receipts for offline ...
2
votes
2answers
29 views

How do I set the display size for custom fields?

I have a profile that combines built-in fields with custom fields, both alphanumeric. The custom field displays shorter than the built-in fields which, when I examine the page source, are size="30". ...
2
votes
0answers
23 views

How to Implement Funds that Different Grants Belong to?

How would I go about implementing funds that different grants belong to? There would be annual funding rounds based on them. CiviGrant by itself doesn't provide this functionality. Two ways to ...
1
vote
1answer
14 views

How do you restore contacts that have a deleted custom contact type?

I am getting an error Invalid Filter error when trying to open a contact that was configured with a contact type that has since been deleted. The contacts are returned in the search but I am unable to ...
2
votes
2answers
27 views

What is the public flag for on custom Field sets?

What is the public flag for on custom Field sets? It seems that even if a field is marked as public, it will not show up for anonymous users on a profile unless I give anonymous users the "access all ...
2
votes
2answers
19 views

Change 'Used for' contact type of custom fields

I have custom field group set as used for 'individual' but I want to change it to limit it to a contact subtype. What is the best way to achieve this - I could create a new field group and copy data ...
1
vote
3answers
28 views

Is is possible to restrict visibility of custom data sets?

Current install - WP5.0 / Civi 5.7.2 I'm just thinking through our Safeguarding / Child Protection process. We don't have any issues, but we're legally obliged to have a process. And I'd rather set ...
3
votes
1answer
19 views

Implementing tokens and tokenValues hooks for Event custom field

I'm trying to implement a hook for inserting Event custom fields into Scheduled reminders; however, I'm not a developer so I'm really not sure what the code needs to look like. The custom field is ...
2
votes
1answer
18 views

Can custom Tokens for pledges be created?

I need to include the amount pledged and the amount they need to pay (which are different values) within an email I'm sending from CiviMail to let our pledgers know when/how to pay and how much. This ...
2
votes
1answer
26 views

How to retrieve custom field image files?

How can I retrieve images uploaded in custom field sets for contacts? Could you get a URL for them the same way you can for the contact "image_url" in the API? When I look up the custom field for the ...
3
votes
0answers
16 views

Communication Styles

How to define "informal" or "formal" communication style? That is, how to link the informal (1) email and (2) postal greetings, and (3) address layout to the informal style, idem for the formal style....
4
votes
2answers
61 views

custom fields not adding to Drupal views

I'm trying to build a drupal view and pull in rm custom data For both contact (client) and case (view for case contact, relationships include case contact id-case id, and case contact id- contact id) ...
2
votes
2answers
41 views

Current Employer style field for a custom field

I have been asked to add some custom fields to the default CiviCRM Interface that bahave like the current employer field. That is to say, my users want to create certain relationships and have them ...
2
votes
1answer
24 views

Multiple custom field sets in one contact tab (not the main one)?

Drupal 7.59, CiviCRM 5.5.1, Shoreditch alpha24. Within a contact you can display a custom field set as an additional tab (or on main tab). On the main tab you can have groups of fields, including ...
3
votes
1answer
39 views

Tags, relationships, or custom fields to record custom data?

Apologies if this isn't the best place to ask, I'm completely new to CiviCRM and could do with some advice on the best way to store custom data. I'm building a database of churches. For each church I ...
2
votes
1answer
19 views

Selecting all checkboxes for field reverts to one value

On Wordpress 4.9.8 and Civi 5.4.0. It shows multiple values as long as you do not select all of the options. If you select them all, then it reverts back to just one (petitioning in this case) for ...
1
vote
1answer
36 views

Missing Custom Activity Field Data When the Activity is Filed on a Case.

As the title states. Data that I enter into custom activity fields, is saved and I can view that saved data from the Activities tab in the Contact Summary. Like this: But after the activity is ...
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
2
votes
1answer
24 views

Should participant custom fields be available under events on webform

Custom fields for participants in Civi are not being presented for addition to Drupal Webform. Event registration is selected and working but the custom field set for participants are not showing up ...
3
votes
1answer
41 views

How to use civiprofile for contact form

I want to use a civi profile for our contact form, so that all inquiries and new contacts are stored in civi. I created the custom fields and have them on a new tab and table, so multiple submissions ...
3
votes
1answer
28 views

CRM API shows only the first char of the result?

I'm absolutely embarrassed. I try to get value as it in this thread (and sorry for the wrong use of the topic). I try get a custom value via CRM API. With the API Explorer I can create the ...
0
votes
2answers
38 views

CiviEvent Confirmation Email Displaying Profiles Not Used In Event

We have created some custom fields/profiles to use with certain CiviEvent registrations. These profiles only display in the event registration when they are selected in the event setup - as expected. ...
6
votes
2answers
46 views

Add Custom Field to Core Field Group

I'd like to add a custom field to the "core" demographics fieldgroup: the place of birth. I created a custom field, but I can't figure out, how to put it into demographics fieldgroup. Is it possible ...
1
vote
1answer
49 views

Importing membership custom field keeps failing

I'm having problems importing memberships with a custom field. I'm able to import a alphanumeric text field without an error, but a second custom field, set up as a checkbox, keeps being rejected. ...
3
votes
1answer
54 views

How to change the value of a custom radio button field programmatically?

I have a CiviCRM profile that hosts a custom field. The custom field is of type "Radio-Button" and hosts two options: What I'm trying to achieve is changing the values of each option programmatically ...
0
votes
2answers
18 views

Custom filed that will auto calculate a position number based on date

We manage a wait list for membership so I would like to know if there is a way to calculate a number for a custom filed that would be based on if a member is a subtype and then the date in another ...
0
votes
3answers
52 views

Get Custom CiviCRM Data by ContactID This is not a duplicate

This is option group 110 in civicrm_option_value I am trying to create a custom query for reporting that pulls the actual Custom Data LABELS ('Green Light','Red Light', etc)vs the custom data VALUES (...
0
votes
1answer
70 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 ...
1
vote
2answers
25 views

Keeping historical demographic information, while updating donor information

So we have a unique use case. The organization collects donations from employees of various departments with various roles at the organization. Collecting employee information like title, department,...
1
vote
2answers
28 views

How to display only Time value in User Contact without the Current Date value

I have created a custom field selecting date type,selecting the date format and time.Actually I will need only Time field but the system doesn't alow to create custom field of type date, without ...
0
votes
1answer
20 views

Custom Data Responses

How can I view responses to custom data questions? By looking at Contact summary I can see that new contacts are responding, but when I click on the link, nothing is there.
1
vote
1answer
27 views

Cannot set sort order of custom fields in profile

I created a custom group and populated with custom fields. When I preview all fields in group, it is in the correct order. When I use the custom group in a profile, the profile reverses the order. ...
3
votes
1answer
24 views

Large Text Fields Not Writing in Database

We've discovered what seems to be a bug creating large text fields from CiviCRM Custom Fields. I hope I'm able to explain this well enough. Relevant environment information: - Drupal 7.59 - CiviCRM 5....
0
votes
0answers
23 views

Custom fields inline don’t save data but tabs do after failed upgrade

WP 4.9.6 Upgrade from 4.7.24 to 5.1.2 upgraded files but not database (still showed 4.7.24 in civicrm_domain) No error messages it just hung. I reverted to original files and database Now in backend ...
1
vote
1answer
29 views

Insert custom date field from Drupal Webform

I'm trying to set up a Drupal Webform that will (among other things), automatically update a custom date field in the connected CiviCRM contact record. The date field in the webform is hidden, and I'm ...
0
votes
0answers
47 views

Participant Custom Field Set not displaying when edit or view registration record

I have a 4.7.27 WP install where the custom field set attached to a participant record does not display when either viewing or editing the participant record. I know the fields are there because they ...
1
vote
1answer
24 views

Why would two distinctly separate custom fields share the same options?

Why would two distinctly separate custom fields {Constituent Info and Contribution Info} share the same options? How do I go about separating them? If I try to delete any option I get this ...
1
vote
1answer
19 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 ...
5
votes
1answer
27 views

Does CiviVolunteer need volunteer sub-contact type?

We have found that it is more cumbersome than it is worth to use a 'volunteer' sub-contact type classification. One reason is profiles assume one contact type and even working with Caldera Forms it ...
1
vote
1answer
63 views

How to display an Event's custom field on its registration form

I have a custom field set with fields used for managing extra data on the event. I want one of the custom fields' value to be shown in its registration form. What is the Smarty expression to put in ...
0
votes
2answers
20 views

Different subsets of a selection custom field

I have a select custom field for 'Accommodation' showing the options available for participants in events' registration form. To simplify, lets say there are 10 different accommodation options, '...
0
votes
1answer
73 views

Custom date field formatting with smarty

I'm trying to format a custom date field using smarty to send emails. What I want is to have the day of the week included, as "Wednesday, April 18, 2018". It seems that this should work: {contact....
1
vote
1answer
27 views

Multi-value custom fields for events

I have events that often include downloadable materials. Whether or not there are downloads, what exactly they are, and the number of downloads related to a particular event is variable and unique to ...