Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide helper functions to compute the actual field label #1075

Open
douglasbouttell-camunda opened this issue Feb 28, 2024 · 0 comments
Open
Labels
backlog Queued in backlog enhancement New feature or request

Comments

@douglasbouttell-camunda
Copy link
Contributor

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

In order to programatically access field labels outside of form-js, one has to use the templating helpers and reconstruct the internal execution state of the form.

For example, if someone wishes to add custom messaging around form validation. They will need to do this to display the correct field labels.

Describe the solution you'd like

Add a new method to the field object, computedLabel, which will compute the actual label to be shown.

This should centralise some logic which is currently spread over react code.

Describe alternatives you've considered

Labels can be properly generated but requires knowledge of the internal state of the form and access to helper functions.

Additional context

https://github.com/camunda/tasklist/pull/4515

@douglasbouttell-camunda douglasbouttell-camunda added the enhancement New feature or request label Feb 28, 2024
@nikku nikku added the backlog Queued in backlog label Mar 7, 2024 — with bpmn-io-tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Queued in backlog enhancement New feature or request
Development

No branches or pull requests

2 participants