Set End Message
set_end_messageSets the survey's GLOBAL end-screen message — replaces the standard 'Thank you for participation…' text respondents see when they finish. Writes the survey's default language; other languages are set through configure_survey_language. HTML is allowed; an optional title renders above the message. The message is shown only when the survey ends on the standard end screen: with a redirect or restart end behavior the text is saved but not displayed — the reply's willDisplay reports which case applies (the end behavior is changed in the app's survey settings). Distinction: this is the GLOBAL final (also where a add_jump_logic_rule target='end' branch lands); for a BRANCH-specific final text use add_end_page and jump to its page number. Verified by re-reading the stored survey. Requires the edit-survey right.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Survey publication code — the 8-character code from the survey's public link (e.g. 1a2b3c4d). Returned by list_surveys. | |
| title | No | Optional headline shown above the message. | |
| message | Yes | The end-screen text (HTML allowed). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | What the call did, verified, refused or previewed — the complete human-readable outcome. | |
| preview | No | true when the call was a preview (confirm not passed): nothing was changed. |