We have moved to GitHub Issues
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
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.
added extra screenshot
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.
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.
Agreed, in U6 validation would only fire for fields flagged as mandatory, which made sense.
Ran into this today, any updates?
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.
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!
Backwards Compatible: False
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