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) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Custom fields are sorted inconsistently
Pages: [1]

Author Topic: Custom fields are sorted inconsistently  (Read 1905 times)

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Custom fields are sorted inconsistently
October 08, 2012, 01:12:53 pm
Custom fields end up in very different places on different drop down menus.

Consider the two screenshots attached - one of the list of fields available when using Search Builder, the second when creating a profile.

There's a broader issue of sort order in these dropdowns being inconsistent generally, I suppose - it's not just custom fields.

Is the best way to handle these by simply finding them and fixing the code one by one?  Or is there a helper function that sorts the fields that can be called and in some instances it's not?
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Custom fields are sorted inconsistently
October 08, 2012, 03:19:37 pm
The "Add Profile Field" display is newer - and I think better since it keeps the custom fields sorted with the other fields by field label (and then appends the custom field data set title for "clarification"). The Search Builder dropdown should be fixed to at least sort properly (and ideally to present the custom fields in the same way as profile). HOWEVER, their approach to the field hierarchy is different. The profile field form exposes the shared "Contact" fields separately from fields specific to a contact type (e.g Individual). Search Builder puts all fields which apply to Individual (including generic Contact fields) under the Individual "category".

In recent discussions about a new Profile form builder - there was a bias toward using the Search Builder approach (i.e. show ALL Individual + Contact fields under Individual category).

IMO given the probability of some major changes in Profiles for 4.3 (which hopefully could include a good underlying method for retrieving a field list) - might make sense to hold off (or just do simple patches to fix sort order and Custom Field Label :: Data Set Name in Search Builder).
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Custom fields are sorted inconsistently

This forum was archived on 2017-11-26.