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
CommentFileSizeAuthor
#5 webform.webform.issue_3398594.yml4.81 KBjrockowitz

Issue fork webform-3398594

Command icon 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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nachthorn created an issue. See original summary.

cilefen’s picture

Is [none] a valid token?

nachthorn’s picture

I assumed that much, because in the help on this field it says:

Previous submission message
A message to be displayed when there is previous submission.Defaults to: You have already submitted this webform. View your previous submission. Enter [none] to hide this message.

cilefen’s picture

Understood.

jrockowitz’s picture

I 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.

gaddman’s picture

I tried to hide the message by setting it to [none] but the CKEditor reformats that to

<p>
    [none]
</p>

so 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.

tklawsuc’s picture

One 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]'

  • jrockowitz committed 10639d02 on 6.2.x
    Issue #3398594: Invalid token for Previous submission message
    
jrockowitz’s picture

Version: 6.2.0 » 6.2.x-dev
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.