Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • CiviCRM Core CiviCRM Core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Issues 1k
    • Issues 1k
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • DevelopmentDevelopment
  • CiviCRM CoreCiviCRM Core
  • Issues
  • #4575

Proposal: Calculation element for Form Builder

Overview

We would like to have a new element that allows basic arithmetic operations with number fields. The idea is to be able to sum up several number fields or compute an average. The implementation might make use of the field references suggested in issue #4576.

It should also be possible to include constants in the computation.

Use case

Trying to set up a scoring form for e.g. an event – it would be great to be able to compute the average score and store it in CiviCRM.

Current behavior

No such behaviour currently exists.

Proposed behavior

A computed form element is available that can use input fields as well as fixed values.

Edited Sep 13, 2023 by simon.hermann
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking