1

I want to edit a field called "source" in the new Individual form. I want to change the name of the field. where can I change it?

4

You can use the word replacements feature, if you want to replace the word everywhere.

Or if you're just using that field for a different purpose, create a new custom field instead.

  • not everywhere, only in one place – Parthibaraj Rajasekar May 17 '17 at 6:45
  • and I have a problem in word replacements as well. It is not getting replaced in all places. Tried replacing "contributions" with "donations". the change is not getting reflected in CiviReport, while in other places it is changing. – Parthibaraj Rajasekar May 17 '17 at 7:55
3

Try some CSS:

label[for=contact_source]
{
    /* ...definitions here... */
}

You can use the ::after to add arbitrary text, as per, e.g. https://css-tricks.com/almanac/selectors/a/after-and-before/

  • Do you mean javascript/jquery? – Alan Dixon May 16 '17 at 18:47
  • I was thinking ::before or ::after – KarinG - Semper IT May 16 '17 at 19:12
2

You already had many answers how to. I will make a recommendation: create a custom field rather than manipulate a core CiviCRM field? It will be easier to maintain if fields change in updates of CiviCRM.

  • I want to do the same thing that field label "Source" does... It tracks the source of the contact from events.. Apart from events my organization has contacts from website, Stall, etc. I want to add values to the field like Website visitor, Stall visitor. But the Label "Source" is not self evident. – Parthibaraj Rajasekar May 17 '17 at 7:48
  • It is a recommendation :-) feel free to change the label with jQuery or css – ErikH - CiviCooP May 17 '17 at 14:31
  • 2
    I think I'm with Erik on this one - a custom field is going to be a better strategy. Aside from the maintainability, another reason is that you have more control over the field if it's a custom field - e.g. you can set up a select for it, and it won't get auto-populated by various internal mechanisms. – Alan Dixon May 17 '17 at 21:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.