Skip to content

Expanded computed field capability #2197

Description

@PeterBaker0

Is your feature request related to a problem? Please describe.

The current computed is limited to numerical types in input and output. Ideally we would offer more flexibility here to support use cases that e.g. Survey123/Fulcrum can support.

Describe the solution you'd like

Ability to compute over strings, numbers and booleans and output strings, numbers and booleans. This would then allow us to build a more general expression engine based on this work, for informing things such as boundary conditions for sliders (e.g. XLSForm constraints).

An example of a field (pseudo code) might be:

fireRisk := if vegType = 'hedge' then (if vegHeigh < 3 then 'Low' else if vegHeight <5 then 'Medium' else 'High') else 'Medium'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions