Questions tagged [custom-fields]

Questions about custom fields in CiviCRM.

Filter by
Sorted by
Tagged with
2
votes
1answer
11 views

Token for Contribution custom field outputting “Array” for a Multi-Select custom field

I created a message template for an email that will be sent to our accounting when an online contribution is made - it has a table and I've inputted tokens that will put in data for the contribution. ...
1
vote
1answer
11 views

How to update preferred language depending on a custom field in imported contacts?

I have imported hundreds of contacts having a custom field called "Langue" in set "ocsr" and having two possible values, 'F' and 'N'. I want to transfer this information into the field preferred ...
1
vote
1answer
32 views

I can see Age in a Contact Summary. How can I add Age to a Profile?

I can see Age for a contact in the Contact Summary screen, which is not a built-in field, but is apparently calculated from the Birth Date field. I can add the Birth Date field to a Profile. How can I ...
1
vote
0answers
6 views

Api4 does not delete values table when deleting a Custom Group

I'm using Api4 to remove a Custom Group upon uninstalling an extension. The api call looks like \Civi\Api4\CustomGroup::delete() ->addWhere('id', '=', $idOfCustomGroup) ->execute(); The ...
1
vote
0answers
13 views

Custom Fields are no longer appearing on profiles after update to 5.25.0

I have just updated my Joomla 3.19.8 site from version 5.18.12 to version 5.25.0, and my profile views are no longer including any custom fields. No custom fields appear: - on any profiles displayed ...
0
votes
1answer
23 views

Why are custom field's multiple choice options all unchecked on contribution page?

Today I installed 5.25.0 (running with Drupal 7.69). I have a profile that includes a couple of custom fields that are multiple-choice (e.g. professional interests - check all the apply). The choices ...
0
votes
1answer
16 views

How can I prevent users editing custom fields for contacts not in their ACL group?

Using Wordpress 5.4.1 with Civi 5.24.3. We have a smart group used for ACL which prevents the core "Edit" button being shown on the contact summary. There is also an ACL entry for a group of ...
2
votes
1answer
19 views

When exporting data from CheckBox field, can value of be different from what is displayed?

When exporting data from a custom CheckBox field, can the value of the data exported be different from what is displayed? For example, the checkbox Multiple choice is labeled "Asked" but I would ...
0
votes
1answer
20 views

What is the best way to disable the jquery.crmEditable.js file in CiviCRM without modifying the core common.js file?

We have a use case whereby certain users should not be able to edit certain rows of custom data. CSS selectors can hide the "Edit" links for these rows, but the inline editing (i.e. clicking on the ...
0
votes
1answer
17 views

How to show custom data on subsequent recurring contributions or how to setup anonymous donations?

Drupal 7.69 CiviCRM 5.20.0 iATSPayments 1.7.2 How do we get custom data to show with subsequent contributions in a recurring series or to have recurring anonymous donations? We use a custom data ...
1
vote
0answers
13 views

Can I use a membership custom field in a renewal confirmation e-mail

I use a custom field in my membership records (Reference code). This custom field {membership.custom_8} i can use in e-mail reminders of the type membership that i use to warn members about an ...
4
votes
1answer
24 views

Is there a hook to impact custom data before it's saved?

I feel like I've hit this issue before and found a solution, but I'm drawing a blank right now. I need to be able to compare the value of a custom data field before it's saved in order to ...
1
vote
0answers
14 views

How can I commit civicrm configs to git? [duplicate]

I am exploring civicrm and am trying to set up a prod, staging, dev environment where by I create and test custom fields in dev and deploy them to prod. What is the best way to do this? I cam using ...
2
votes
0answers
39 views

Use Civicrm with Callhub

I would like to use Civicrm in phone banking. I have managed to link Callhub and Civi together so that a phone call is recorded against a user's name. You can also record some of the call information ...
1
vote
2answers
30 views

System status - disabled/deleted fields on Smart Groups (5.24)

After upgrading to 5.24 I get the above message in system status. I've disabled and re-enabled all smart groups but the message persists and I can't find any redundant custom fields. The message ...
0
votes
1answer
26 views

Custom fields not showing in import and export filter

I have two sets of custom fields related to two sub-types of the same type (organization). Both profiles are active and I can see the custom fields in the contact summaries and in the advance search ...
2
votes
1answer
24 views

import mapping dont save for custom fields on contact subtypes

As the title. If I create custom field set against a contact subtype, then import fields from a csv (saving the mapping for later use), none of the mapped fields are saved for the custom fieldset. i....
0
votes
1answer
12 views

I have created a custom field but only admin users can see it

Have created an inline custom field. Only admin staff can see it. All users should be able to see the view.
3
votes
1answer
28 views

Client Database

It looks like this system has all the functions I need for Donor Management and Fundraising. Does the system also have the capability to house Client Data. For example, we work with families. For ...
1
vote
1answer
19 views

Custom fields in webform membership renewal

I'm starting out to create a CiviCRM system under Drupal for managing the memberships of a Photobiology Society. I have already imported contacts, organizations, memberships and contributions from the ...
0
votes
1answer
32 views

how to keep previous values of custom Membership fields upon renewal

Civi 5.15.1, WP 5.3.2 My organization provides low-cost farm plots to farmers. We use Civi purely back-end (no website exposure). Each farmer can have multiple plots, which we have implemented in ...
3
votes
2answers
48 views

How can I customize the default gear icon on a custom tab set?

Now that there are icons on all the tab sets (awesome, btw) - I'd like to change the standard gear icon that appears on any custom contact field sets that are set to display as a tab. I didn't see ...
2
votes
2answers
45 views

Sending organisation custom tokens to individual

I want to use CiviMail to bulk mail key individual contacts from member organisations and want to include tokens in their email to remind them of the information we currently hold on their ...
1
vote
1answer
32 views

Expected import behavior when setting custom field to view only

Checking this option in a custom field View Only? Is this field set by PHP code (via a custom hook). This field will not be updated by CiviCRM. I had read that it would not update upon import. ...
1
vote
1answer
27 views

Custom emails automatically generated based on participants filling in drupal forms

Hi to all and thanks in advance. I'm on Drupal 7 and Civi 5.20.2. I have the CiviRules and EmailAPI (CiviCoOp) extensions as well as Mosaico. We have participants to our events that apply for ...
0
votes
1answer
11 views

Is it safe to remove INDEX keys for multi language installation?

We enabled multi language support in Civi 5.21.1 then tried to create a new custom field group with Select or Radio options. The error from the DB is below (***edit: This doesn't happen when adding ...
0
votes
1answer
25 views

Data too long for column breaks export

The error is e.g. Data too long for column 'custom_194' at row 1 Our values are 1 character so we set the DB Field Length to 1. However, this makes exports of this same field fail. It is exporting ...
2
votes
0answers
18 views

Events Registration - Custom field widths shown too wide on actual web page

CiviCRM 5.21.0 with Drupal 7 I set up an event registration and added some custom fields and set the width to be smaller than default (usually 20 or 30 wide). In the preview from the Registration ...
1
vote
1answer
24 views

Updating Custom Data Fieldset Settings via php my admin

I've got a site where custom data has been created for Particpant records. And the fieldsets have been made available for all event types. The site in question relies heavily on segmenting events by ...
0
votes
1answer
59 views

Searchable Custom Field doesn't appear in Quicksearch options list and is not a sort option in reports

I have 2 membership custom fields that are set as searchable. One field is integer the other is alphanumeric. Neither field appears in the Quicksearch options in Search Preferences. The custom fields ...
1
vote
2answers
97 views

Issue field DEDUPE “0 Argument 1 passed to”

After upgrading to civicrm version 5.21 we detected a problem in one of the fields of the form linked to a custom profile. For some reason, every time you try to insert that data from the form in the ...
0
votes
1answer
25 views

Unable to insert membership custom field in e-mail using Smarty

I created a custom field set and a custom field used for memberships. Now i would like to insert the data from the custom field into my e-mail template. So i tried to find the custom field id by going ...
1
vote
1answer
17 views

How to set input mask for a custom field

I want to record an identification number (only integer number) and it should only have 14 digits. I am thinking of something like this: '--- --- --- -----' Is it possible and how? regards, Guillaume
0
votes
0answers
17 views

Hide wordpress menu items based on civicrm contact fields?

Is there a way to hide a wordpress menu item based on custom fields in the civicrm contact record?
2
votes
0answers
21 views

How to change the date format for a mailing token for a custom date field

We have a date field, custom, set to be dd-mm-yyyy but when we add a token for that custom field in a mailing it comes out as yyyy-mm-dd hh:mm:ss How do we change this
1
vote
1answer
32 views

Custom field in event - for the message templates

In the Event Information I have new field. There, the organizer can be selected from the CRM. For the message templates I would like to use this information. If the field is filled, the First name / ...
0
votes
1answer
26 views

Using fieldOptions with Custom Fields

I have a "Select list" within a Contribution Form. I want to populate the "Select List" with Custom Field values. I have created the Custom Group under Contacts, so i want to search all contacts and ...
0
votes
1answer
26 views

How do you get contact_id in a custom form?

$contactId = CRM_Utils_Request::retrieve('cid', 'Positive'); $contactId = (int) $_GET['cid']; $contactId = $form->getVar('_contactID'); Are all possible solutions at different places, but none ...
1
vote
1answer
57 views

Custom Field “File” Display Issue

I have a custom field "File" which for some reason is not displaying the file. However, it is being uploaded correctly. The functionality is working fine just the display looks corrupted and if i try ...
1
vote
2answers
45 views

Fetch Node data from drupal into CiviCRM

I am interested to know if it is possible to fetch node data from Drupal into CiviCRM. Is there anyway to do this? My End Goal is to to populate a "select list" with node titles from drupal and ...
0
votes
0answers
5 views

Double custom fields in Edit view for Participant Records

I have created a custom field group in Participant Record that captures the Emergency Contact details (1 field for name, another one for phone number). this is displayed correctly when you click on ...
1
vote
2answers
36 views

Unsure if I just broke my database with a custom field

I added a custom field for authenticated users to add a bio on their profile page (and if there's an existing field I should use for this, please let me know). Not knowing how long I should make this ...
0
votes
1answer
13 views

“Recent Registration” view under CiviEvent - Customise columns

Hi to all (and thank you in advance), I'm looking to add / remove a number of columns under the "Recent Registrations" view, in CiviEvent (image attached). Any suggestions are welcome. (running ...
2
votes
2answers
33 views

Event Reporting to call out Custom Fields in related Contribution Record

Is it possible (via extension perhaps) to get a custom field from a related contribution record to be included in a Event Report ? For example, in a paid event registration, this would create a ...
0
votes
1answer
19 views

Custom field - Drop down. How to create?

Hi guys and thank you in advance. I am extending the options available under "events". I need to create a new custome field (called 'collaboration type') that presents the user with a dropdown list (...
1
vote
1answer
15 views

Get Contact id from Relationship to use in a Hook [duplicate]

I want to display Contact B ID of a relationship for the current contact. I am building a hook and this is my code so far. if ( $formName == 'CRM_Contactlayout_Form_Inline_ProfileBlock') { if ...
1
vote
2answers
56 views

Set Default Value for Custom Field

I am trying to set custom fields in a Custom Group. Here is my code: function dfi_civicrm_buildForm($formName, &$form) { if ($formName == 'CustomData') { if ($form->getAction() == ...
3
votes
1answer
43 views

Can i use CiviToken in Custom Fields

Can i use CiviToken (https://github.com/eileenmcnaughton/nz.co.fuzion.civitoken) as Default Values in CiviCRM Custom Fields the same way Drupal lets you use it. Thanks
2
votes
1answer
30 views

Default Value for Custom Field

I have a created a custom group and a custom field within that group. One of the Custom fields is Date. Is there any way to autoload 'current date' (today) in the default value field Using a hook or ...
2
votes
2answers
71 views

Deleting and Adding Custom Fields

I'm having trouble updating custom fields in CiviCRM 5.15.1/Drupal. UPDATE: I believe this is occurring because I have too many custom fields in a custom group_id. I was able to reproduce this error ...

1
2 3 4 5
10