action that locks submission on completion prevents tokens from processing for email handler confirmation page

Created on 4 October 2022, about 2 years ago
Updated 26 May 2023, over 1 year ago

Problem/Motivation

Webform version 6.1.3 on D9.3.21

I need to lock submissions some time after completion or on completion to prevent submissions from being edited, so I created an action that locks on completion.
However adding this action now prevents my email handler from processing tokens. My email attachment filename proposed in the confirmation page comes out with bogus values unless I delete the lock action.

Steps to reproduce

create a webform with two submit handlers, one is an email, the other is an action that locks, both triggered on submission completion.
in the email handler, use token values for a link to the PDF filename in the confirmation message. When the lock action is present, tokens stop being processed.

Proposed resolution

TBD

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

Data model changes

TBD

πŸ› Bug report
Status

Closed: cannot reproduce

Version

6.1

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada joseph.olstad

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.

  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY
  • πŸ‡©πŸ‡ͺGermany stefan.korn Jossgrund

    I did also notice similar problem with locked submission in webform 6.2.x. The process is as follows:

    - Create a webform
    - add an action that locks webform after submission
    - use token in the confirmation text

    The token is not evaluated in the confirmation page if the locking action is present, otherwise the token is evaluated.

    It also depends on confirmation type as it seems:

    It works if confirmation type is set to
    - Message
    - URL with message

    It does not work with confirmation type set to
    - Page
    - Inline

Production build 0.71.5 2024