Problem/Motivation

When a webform the visitor gets a status message to inform him about this. The type of this status message is 'status'. A more priviliged user gets the status message, but the type is 'info'.

Steps to reproduce

Create a webform add it to a page and close the webform. Visit this page as a visitor and as an administrator. Both will have a different message type.

Proposed resolution

When the webform closed message is shown, always use status type info for the message.

CommentFileSizeAuthor
#5 Admin_Login.png40.38 KBvinodhini.e
#5 Anonymous_user.png24.43 KBvinodhini.e

Issue fork webform-3581383

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:

Comments

cgoffin created an issue. See original summary.

cgoffin’s picture

Title: form_clossed change status message type to info » form_closed change status message type to info

cgoffin’s picture

Status: Active » Needs review
vinodhini.e’s picture

StatusFileSize
new24.43 KB
new40.38 KB

Hi,

I was able to reproduce the issue on Drupal 11.2.5.

As an admin user, the closed webform message is displayed as an info type with the message:
“This webform is closed. Only submission administrators are allowed…”

As an anonymous user, the message shown is:
“Sorry… This form is closed to new submissions.” and appears as a status type.

After applying MR !845, both messages are now displayed as info type for both admin and anonymous users.

Attaching a screenshot for reference.

Thanks.

liam morland’s picture

Version: 6.2.x-dev » 6.3.x-dev
Status: Needs review » Needs work
Issue tags: +Needs reroll

Please re-roll on 6.3.x.