I am using webforms to support this scenario: Health counselors to go to students, collect data (webform submissions), and print a custom report for the student. I did a lot of customization and module work including various hooks and theme template customization for the webforms.

First, notice in the above scenario that a single counselor will go into the field and create multiple submissions.

NEW SUBMISSION SCENARIO
Works great. The counselor talks to a student, creates a new submission, submits it, and then is automatically redirected to the confirmation page. I achieve this using the standard webform Redirection Location: Custom URL [submission:url]

UPDATE SUBMISSION SCENARIO
So suppose the counselor got something wrong. Spelled the student's name wrong or whatever. They can go back and edit the submission. All good so far. But when they submit, instead of being automatically redirected to the confirmation page, they stay on the edit page and see "Submission Updated" message. It isn't a huge deal. The counselor can then click View for the submission, but it would be nicer from a usability standpoint to have consistent behavior for NEW and UPDATE of the submission. You submit and automatically redirect to the report page.

I considered hook_webform_submission_update but it seems to let me "do something" where what I want is to specify "where to go next."

Comments

Mti131’s picture

Same question, 6 years later :)

mattd8’s picture

I'm having to do this same thing. I don't want to add any additional buttons or functionality once they've edited the form submission, I just want to redirect them back to the view submission page. Did you figure it out?

gil'barbare’s picture

Same problem... please help! :)