Skip to content

Cant override field's value on a submission after submit #429

Discussion options

You must be logged in to vote

It seems like the best possible approach here would be using the SubmissionsService::EVENT_AFTER_SUBMIT event.

You would have to update the submissionUrl field value for the $submission element and then re-save the element. There might be an issue while saving using elements service because of all the on-save events triggering, so it could be possible that modifying the value via database directly would be the only viable approach here, but that has to be tested.

After the data has been updated and persisted, the integrations would kick in and send the data to HubSpot as well as send out the emails.

The emails though, depend on how your email template is set up. If it uses the form data, …

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by kjmartens
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #422 on August 16, 2022 14:33.