CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • "another X" to custom data field
Pages: [1]

Author Topic: "another X" to custom data field  (Read 1647 times)

dragontree

  • Guest
"another X" to custom data field
August 17, 2009, 12:54:44 am
How can I add the link to add another field to a custom data field. Just like the one for "another phone". I need to add several files to a contact and I dont want to add a fixed number of entry fields.

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: "another X" to custom data field
August 17, 2009, 01:32:42 am
Quote
How can I add the link to add another field to a custom data field

For which data input type do you want to specify multiple entry fields?
Admin can add as many options for multi-option fields like, radio, checkboxes, select, multi-select, etc

-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

dragontree

  • Guest
Re: "another X" to custom data field
August 17, 2009, 01:38:24 am
Its for adding files.

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: "another X" to custom data field
August 17, 2009, 01:51:45 am
As of 3.0, we don't have an option for n-uploads for a file custom data type.
You could however do some custom coding to achieve this, since the code of multiple file uploads for Attachements is already in place.
You might wanna check buildAttachment method in CRM/Core/BAO/File.php

Hope that helps!
Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

dragontree

  • Guest
Re: "another X" to custom data field
August 17, 2009, 01:56:54 am
Thanks for the quick replies.
I'm not so sure if I can do this but I'm gonna try.
Is there any other way I could add multiple files to a contact?

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: "another X" to custom data field
August 17, 2009, 02:10:19 am
Another workaround could be to create a custom group with multiple records, you could specify "Maximum number of multiple records"
and then creating custom field of input type "File".

NB: Multi-Value custom data works only for tabbed and not inline custom data.

HTH
-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

dragontree

  • Guest
Re: "another X" to custom data field
August 24, 2009, 12:13:11 am
Got another question on the topic. How do i add the "another" link to other field types like link or note?

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: "another X" to custom data field
August 24, 2009, 12:37:28 am
 dragontree:

Quote
How do i add the "another" link to other field types like link or note?

If I am getting you right, you mean to ask how to add a custom field multiple times,(that is you want to add a couple of links / notes )
you might want to configure the custom group as multi-value.

CiviCRM enables you to enter multiple values for a custom group NOT a field, so as mentioned earlier you should create a custom group 
with Display Style = "Tab"
Does this Custom Data Group allow multiple records? = checked
NB: This works only for Contacts as of 3.0

You might wanna take a look here to check how it works,etc
http://sandbox.civicrm.org/civicrm/contact/view/cd/edit?tableId=102&cid=102&groupId=4&action=update&reset=1

HTH
-Yashodha

Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

dragontree

  • Guest
Re: "another X" to custom data field
August 25, 2009, 12:58:04 am
But if it is tabbed then i cant see it when creating a new contact. I have to create the contact and then edit it to get there. Am i right?
I need to enter the values when creating the contact...

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: "another X" to custom data field
August 25, 2009, 01:33:01 am
 dragontree:

Quote
But if it is tabbed then i cant see it when creating a new contact.
Yes

Quote
I need to enter the values when creating the contact...
You can't do that as of 3.0. The multi-value functionality is supported only for Tabs and NOT for inline as mentioned earlier.

Thx
-Yashodha

Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • "another X" to custom data field

This forum was archived on 2017-11-26.