Return confirmation settings

Created on 28 July 2022, over 2 years ago
Updated 13 June 2023, over 1 year ago

Problem/Motivation

When submitting a web form via the API, only the submission ID is returned to the HTTP client.

The "confirmation" configuration of a webform allows to configure several options, including:

  • confirmation type
  • confirmation url
  • confirmation message
  • confirmation title

It would be nice if webform_rest would expose them, so that client applications can display the custom "thank you" message.

(This is similare to #2889795, but that one was closed without a solution for those clients that need the confirmation settings)

Proposed resolution

The JSON returned by "POST /webform_rest/submit" gets extended to the following fields:

{
    "sid": "fca97431-8b64-4b41-a2da-5800dbf8fd49",
    "confirmation_type": "page",
    "confirmation_url": "",
    "confirmation_message": "Thank you so much!",
    "confirmation_title": "Thank you!"
}
Feature request
Status

Fixed

Version

4.0

Component

Code

Created by

🇩🇪Germany cweiske

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024