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

Trigger form action when form state changes #73

Open
TechInterMezzo opened this issue Dec 23, 2024 · 1 comment
Open

Trigger form action when form state changes #73

TechInterMezzo opened this issue Dec 23, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@TechInterMezzo
Copy link

The form state system is great and I would love to have an event that gets triggered if a form state changes.
At the moment I have to poll form field values and collections in a timer loop to recreate some kind of form state watching.

It would be a lot easier if I could add a form action for form state changes.
Then I would need to read the form state. This could be a new frontend function with the state name as parameter or the state name and value could be passed as parameters to the form action.

@r3-gabriel
Copy link
Member

I´ve had a look and unfortunately we would need to find a solution on how to bridge this state based system with timed events. Currently, if we´d react to state changes, you would get hundreds of updates as states are constantly re-evaluated on every change that might affect them.

I´ll add it to our wish list but it would not be a small feature to implement.

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

2 participants