Get UUID of deleted Builder block or repeater (without having to parse request)? #16041
Unanswered
Max-Lovell
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Package
Form builder
Package Version
3.2
How can we help you?
Some blocks in my builders can create variables accessibe to other blocks. As my resource allows for nested builders, I would like to avoid traversing deeply nested json to retrieve these variables. Note once the builder is deployed these user variables are permanently created and accessible, but I'd like the variables users create before deployment or between deployments to be accessible, updateable, deleteable live in the form.
My current solution is to store and retrieve temporary variables from Hidden field at the top of the builder resource. Variables can be tracked using the repeater or block UUID. Managing them is easy using $get and $set with absolute paths.
However, I would need to be able to delete these temporary variables if a repeater or block that created them is deleted. Currently I have figured out how to do this by parsing the request made in the deleteAction, which is some progress.
Still, this doesn't work when a parent block is deleted as the child doesn't register a delete action, for example. Perhaps there is an event I can listen to? thanks
Beta Was this translation helpful? Give feedback.
All reactions