U4-4669 - Required checkbox is overruled by regex on document type

Created by Rik Helsen 10 Apr 2014, 12:43:58 Updated by Shannon Deminick 23 Jul 2015, 12:44:05

Is duplicated by: U4-5116

Is duplicated by: U4-5526

I want people to be able to enter a Hyperlink (& validate it), but without making the input required.

So it can be

  • blank OR
  • contain data that matches the regex

It's impossible to do this making use of a regex for a hyperlink combined with the checkbox for making it mandatory. Since it'll always have to comply with the regex

Proposed solution: Allow a node to be saved with an empty value if the field is not required, even if that doesn't match the regex validation.

2 Attachments


Rik Helsen 10 Apr 2014, 12:46:40

added extra screenshot

Douglas Robar 10 Apr 2014, 15:21:37

Agree, you should be able to have regex validation applied to any input, but if the doctype property is not 'mandatory' then it can also be empty.

This has worked for a long time in Umbraco and should continue to do so in v7.

Rik Helsen 11 Apr 2014, 12:09:24

it would be even more wonderfull if I can associate a validation error message with the regex... but that's a change request i assume.

Dan Booth 10 Oct 2014, 13:52:44

Agreed, in U6 validation would only fire for fields flagged as mandatory, which made sense.

Stefan Kip 29 Jan 2015, 13:33:15

Ran into this today, any updates?

Shannon Deminick 23 Jul 2015, 12:33:38

I'm marking this as a breaking change because this will now be different behavior from the previous versions... it might be an 'un-breaking' change, but regardless I guarantee some people will be affected since they might be relying on the current behavior.

Shannon Deminick 23 Jul 2015, 12:43:44

This is now in 7.3, would appreciate if you guys can test this either with the nightly tonight or when 7.3 beta2 is out soon!

Priority: Normal

Type: Bug

State: Fixed


Difficulty: Normal


Backwards Compatible: False

Fix Submitted:

Affected versions: 7.1.4, 7.1.5, 7.1.6, 7.1.7, 7.1.8, 7.1.9, 7.2.1

Due in version: 7.3.0


Story Points: