Skip to content

Events: Good idea to edit & save a custom field in afterSubmission event? #1575

Answered by engram-design
mandrasch asked this question in Q&A
Discussion options

You must be logged in to vote

This might be a better task for a custom integration with Formie. But if you want to keep the quick-and-dirty path, that's okay!

That will be fine, no issue with that. You won't cause a recursion because EVENT_AFTER_SUBMISSION is only triggered via formie/submissions/submit action endpoint and not when saving the element at any given time. Otherwise, you'd end up in an infinite saving loop.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@mandrasch
Comment options

Answer selected by mandrasch
Comment options

You must be logged in to vote
1 reply
@engram-design
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants