Skip to content

Commit

Permalink
add missing fields in form submission
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbranham committed Aug 19, 2024
1 parent cc831ac commit 1c01af0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public void submitForm(Form form, Map<String, Object> payload)
var submission = formSubmissions.create(form, stringPayload);

payload.put("_form_id", form.getId());
payload.put("_form_name", form.getName());
payload.put("_submission_id", submission.getId());
payload.put("_submission_datetime", submission.getCreatedDate());

Expand Down Expand Up @@ -72,7 +73,9 @@ public void submitForm(Form form, Map<String, Object> payload, String apiKey, St
var submission = formSubmissions.create(form, stringPayload);

payload.put("_form_id", form.getId());
payload.put("_form_name", form.getName());
payload.put("_submission_id", submission.getId());
payload.put("_submission_datetime", submission.getCreatedDate());

var destinations = form.getDestinations();
log.info("executing form hooks: " + destinations.size());
Expand Down

0 comments on commit 1c01af0

Please sign in to comment.