Mandatory validation on checkbox list doesn't work Options
dawoe
Posted: Saturday, March 15, 2008 1:34:58 PM

Rank: Aficionado

Joined: 1/19/2008
Posts: 170
Location: Belgium
Hi,

I created a datatype with a lot of prevalues that renders as a checkboxlist. When I put this in a documenttype and make it mandatory the validation doesn't work. I also tried using a regex in the validation field to see if the value is empty (\w+) but that doesn't work either.
In only have 1 option now. Use a dropdownlist multiple which is not user friendly with a lot of prevalues.

Where do I submit this bug ?

Converting a DotNetNuke site to Umbraco : Follow it here
neehouse
Posted: Saturday, March 15, 2008 4:00:33 PM

Rank: Umbracoholic

Joined: 7/20/2006
Posts: 1,074
Location: Charleston, West Virginia, United States
Hi Dave,

You can submit a bug at codeplex.com/umbraco/


However, this is a known problem, as the validator is a standard .NET validator. It does not work correctly with a few type of controls such as the Checkbox list, Radio Button List, Upload, and possibly a few others.

There was a short discussion with the core developers about making modifications to the controls that would allow for custom validators such as a checkbox validator, but, I don't believe it is planned for release until version 4, which is ways off.

You can create a custom version of the editor control which will handle validation itself relatively easily.

Case

• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.