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

Proof of Concept: make a custom function available in a form-js form #66

Open
prestoncabe opened this issue Dec 13, 2024 · 2 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@prestoncabe
Copy link
Owner

The Camunda Assistant GPT suggested that one can create a custom function in JS, that is made available to the FEEL engine within a form-js form.

I'd like to test this out with a toSentence function that would replace the complex/ugly code we currently have to transform the benefit names and eligibility checks from camel case to a more readable format. (used in the "Results" section of the form)

@prestoncabe prestoncabe added this to the Post-MVP Cleanup milestone Dec 13, 2024
@prestoncabe prestoncabe self-assigned this Dec 13, 2024
@prestoncabe
Copy link
Owner Author

With some more research, it looks like the only way to do this that would make the custom function usable when building/previewing the form is to fork the form-js repo.

I will take another look at the docs to see if I missed anything, otherwise I don’t know if the complexity is worth the time right now.

@prestoncabe
Copy link
Owner Author

Letting this go for the moment, since having a toSentence function available in the form is the only compelling use case at the moment, and we already have a working (if clunky) solution for that.

@prestoncabe prestoncabe modified the milestones: Post-MVP Cleanup, Backburner Dec 20, 2024
@prestoncabe prestoncabe added the enhancement New feature or request label Feb 1, 2025
@prestoncabe prestoncabe removed this from the Backburner milestone Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant