Problem/Motivation

We've been using this module on any of our sites, but only now are finally in the situation where we want the field to be required. Upon checking the required box when creating the field, nothing shows visually on the front-end indicating the field is required (*) and the field will let you save without any data.

Proposed resolution

It seems that by checking the value of the element required setting in the widget file it solves this problem easily.

Remaining tasks

I've created a patch, am going to test with a few of out sites to ensure it works as expected then attach it in a follow up post.

CommentFileSizeAuthor
#3 3126319-3.patch671 bytescdbusby

Comments

cdbusby created an issue. See original summary.

mikeohara’s picture

Following - Noticed this on projects as well.

cdbusby’s picture

Status: Active » Needs review
StatusFileSize
new671 bytes

We've tested this patch so far against two different sites and has been successful both times.

  • zero2one committed d8a74b6 on 8.x-1.x authored by cdbusby
    Issue #3126319 by cdbusby: Heading field not required when checked in...
zero2one’s picture

Status: Needs review » Reviewed & tested by the community
zero2one’s picture

Status: Reviewed & tested by the community » Fixed

@cdbusby Thank you for the fix.

zero2one’s picture

Status: Fixed » Closed (fixed)