When editing a draft, users are presented with this message:

A partially-completed form was found. Please complete the remaining portions.

I would like to customize this message per form, and in some cases hide it completely.

Comments

joelstein created an issue. See original summary.

joelstein’s picture

Status: Active » Needs review
StatusFileSize
new4.2 KB

Here's a patch which adds this as a customizable option on the node's form settings page.

By default, the field is empty, which means the standard message will appear for users editing a draft.

This can be overridden per-node by setting this new field, or globally by setting the 'webform_draft_message' variable.

Also, I added a special value of <none> which will hide the message completely.

And there's an install script to add the new field to existing webforms.

chris matthews’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

The patch in #2 to webform.install does not apply to the latest 7.x-4.x-dev and will need a reroll.

Checking patch includes/webform.pages.inc...
Hunk #1 succeeded at 344 (offset -1 lines).
Hunk #2 succeeded at 468 (offset -1 lines).
Checking patch webform.install...
error: while searching for:
         'not null' => TRUE,
         'default' => 0,
      ),
      'submit_notice' => array(
        'description' => 'Boolean value for whether to show or hide the previous submissions notification.',
        'type' => 'int',

error: patch failed: webform.install:72
error: webform.install: patch does not apply
Checking patch webform.module...
Hunk #1 succeeded at 1733 (offset 17 lines).
Hunk #2 succeeded at 2570 (offset -1 lines).
Hunk #3 succeeded at 4387 (offset 23 lines).
Adev22’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new4.54 KB

I've rerolled the patch in #2 and branch 7.x-4.x gives me no errors

liam morland’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

The patch in #4 just adds a patch file to the repo.

rpayanm’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new4.27 KB
liam morland’s picture

Status: Needs review » Closed (outdated)

Drupal 7 is no longer supported. If this applies to a supported version, please re-open.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.