Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When replacing the default message for "Previous submission message" with token "[none]", error message is displayed: " Previous submission message is using the following invalid tokens: [none]. "
Steps to reproduce
- create Webform
- change settings for "Previous submission message" to "[none]" to disable message
- save
Comment | File | Size | Author |
---|---|---|---|
#5 | webform.webform.issue_3398594.yml | 4.81 KB | jrockowitz |
Issue fork webform-3398594
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
cilefen CreditAttribution: cilefen as a volunteer commentedIs [none] a valid token?
Comment #3
nachthorn CreditAttribution: nachthorn commentedI assumed that much, because in the help on this field it says:
Comment #4
cilefen CreditAttribution: cilefen as a volunteer commentedUnderstood.
Comment #5
jrockowitz CreditAttribution: jrockowitz as a volunteer and at Webform module Open Collective, The Big Blue House commentedI am not getting the [none] invalid error via the attached webform.
Still, the "Previous submission message" to "[none]" to disable message behavior is not working as expected.
Comment #6
gaddman CreditAttribution: gaddman commentedI tried to hide the message by setting it to
[none]
but the CKEditor reformats that toso instead of hiding the message it just displays the text
[none]
. Even entering the text in source mode doesn't help (it still gets reformatted on save). Exporting the webform, removing the paragraph tags, and importing it again works, but lost as soon as you edit the submissions setting page.Comment #7
tklawsuc CreditAttribution: tklawsuc at Kanopi Studios commentedOne way around the ckeditor p tag is to add a custom settings handler and override the limit message there:
previous_submission_message: '[none]'
In my case it was the user limit message
limit_user_message: '[none]'
Comment #10
jrockowitz CreditAttribution: jrockowitz as a volunteer and at Webform module Open Collective, The Big Blue House commented