Problem/Motivation

We want to add Height and Weight as fields in the CRM system. These are neutral demographic fields useful for reporting, analytics, and integrations. Currently, they are not available in the Person contact type.

Considerations include storing data in metric units while allowing formatting in other systems (e.g., imperial units) and making the fields optional. We also want to leverage existing contrib modules if available to avoid custom development.

Steps to reproduce

1. Go to the Person contact type.

2. Attempt to add Height and Weight fields.

3. Observe that these fields are not available by default.

Proposed resolution

1. Add Height and Weight fields to the Person contact type as optional fields.

2. Store values in metric units (cm for height, kg for weight).

3. Provide formatters to display values in imperial units where needed.

4. Investigate and integrate existing contrib modules for height and weight fields.

5. Follow Drupal best practices for field storage, widgets, and formatters.

Remaining tasks

  • Research existing contrib modules for height and weight.
  • Decide whether to add these fields by default to the Person contact type.
  • Implement fields with proper field widgets and formatters.
  • Test field storage, display, and conversion between metric and imperial units.

User interface changes

New optional fields for Height and Weight will appear in the Person contact type forms. Formatters will allow display in either metric or imperial units depending on the configuration or output requirements.

API changes

No core API changes expected. New field definitions and formatters will be available for programmatic access via standard Drupal field APIs.

Data model changes

New fields will be added to the Person contact type:

- Height: Decimal, stored in centimeters.

- Weight: Decimal, stored in kilograms.

Both fields are optional and can be converted for display in other units.

Issue fork crm-3554373

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bluegeek9 created an issue. See original summary.

bluegeek9’s picture

Title: Height and Weight fields » Demographic: Height and Weight
bluegeek9’s picture

This project might be what we need. https://www.drupal.org/project/physical

jdleonard’s picture

I agree that project looks very promising.

jdleonard’s picture

Version: 1.0.0-alpha6 » 1.0.x-dev

Fixing version.

bluegeek9’s picture

Category: Feature request » Plan
Priority: Normal » Minor

Making a plan to indicate that this is meant for discussion before implementation. The ultimate solution might not seide in the crm namespace/project.

bluegeek9’s picture

I think a recipe for height and a recipe for weight using the Physical project.

bluegeek9’s picture

Assigned: Unassigned » bluegeek9
Category: Plan » Task

bluegeek9 changed the visibility of the branch 1.0.x to hidden.

bluegeek9’s picture

Assigned: bluegeek9 » Unassigned
Status: Active » Fixed
//www.flaticon.com/free-icons/thank-you Thank you for your contribution! Your continued support makes this project sustainable.
There are multiple ways to show appreciation for the work contributed to this project including:
  • Triage issues and adding more context to existing issues.
  • Flagging CRM as a favorite on the project page to help others discover it and show your support.
  • Review the Developer Docs for accuracy and clarity.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • bluegeek9 committed 705583b8 on 1.0.x
    task: #3554373 Demographic: Height and Weight
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.