I have added a datepicker to a tab of a document type, and selected the "mandatory" checkbox because i'll need it for sorting later, but i can save any page created with this doctype without entering anything in the publicationdate field?
I'm still allowed to save & publish the page without entering a date...
Even stranger, when i output the value of "publicationdate" for a page where it wasn't entered, it outputs today's date instead of an empty value...
Making date mandatory doesnt work been like that for a while something todo with load order if i remember rightly think there is work item on codeplex.
Anybody have ANY workaround for this in 4.5.2? I really can't have a document published without this required field being entered. If you can tell me what to change in the source I can modify it and compile if that's what it takes.
Bump again. Can anybody give me a starting point on where I need to take a look at in version 4.5.2 in order to start making a patch for this bug? Niels, I see that you fixed it in Juno. Can you point me in the right direction?
I think the easiest way would probably be to make a custom DatePicker datatype rather than modifying the Umbraco source. You could base it off Umbraco's current datepicker or use any number of jquery/.NET ones. See this article on Tim's blog for a simple example of a custom datatype with some javascript: http://www.nibble.be/?p=62
You could get the source off codeplex, and compare the old 4.5.2 code with the Juno one to see what changed in the datatype? You might even just be able to rip the datatype out of Juno and compile it (you'd have to change it's GUID though to avoid confilcts), and add it as an extra DataType.......
"Mandatory" doesn't affect datepicker? 4.5.1
I have added a datepicker to a tab of a document type, and selected the "mandatory" checkbox because i'll need it for sorting later, but i can save any page created with this doctype without entering anything in the publicationdate field?
I'm still allowed to save & publish the page without entering a date...
Even stranger, when i output the value of "publicationdate" for a page where it wasn't entered, it outputs today's date instead of an empty value...
The code i use to output:
Can anyone confirm this behaviour?
Rik,
Making date mandatory doesnt work been like that for a while something todo with load order if i remember rightly think there is work item on codeplex.
Regards
Ismail
Had a look in the issuetracker but couldn't find any related cases, i'll create a new one then...
Reported this bug here: http://umbraco.codeplex.com/workitem/28646
Please vote for it if you encounter the same issue.
Yeah, this is a bit insane.
Is someone able to describe why the validation doesn't kick in? Happy to help make a patch.
this has been driving me crazy for a long time. Vote added to codeplex
I've fixed it for Juno - thanks for reporting and voting!
any chance of a patch for 4.5.2?
I am using Umbraco 4.5.2 and I still have the above problem. Does anyone have any suggestions?
BUMP!
Anybody have ANY workaround for this in 4.5.2? I really can't have a document published without this required field being entered. If you can tell me what to change in the source I can modify it and compile if that's what it takes.
Bump again. Can anybody give me a starting point on where I need to take a look at in version 4.5.2 in order to start making a patch for this bug? Niels, I see that you fixed it in Juno. Can you point me in the right direction?
Thanks!
Hi,
I think the easiest way would probably be to make a custom DatePicker datatype rather than modifying the Umbraco source. You could base it off Umbraco's current datepicker or use any number of jquery/.NET ones. See this article on Tim's blog for a simple example of a custom datatype with some javascript: http://www.nibble.be/?p=62
Then take a look at this thread for ways to make a custom datatype mandatory (pre 4.6). http://our.umbraco.org/forum/developers/extending-umbraco/14157-Make-custom-datatype-mandatory
-Tom
You could get the source off codeplex, and compare the old 4.5.2 code with the Juno one to see what changed in the datatype? You might even just be able to rip the datatype out of Juno and compile it (you'd have to change it's GUID though to avoid confilcts), and add it as an extra DataType.......
is working on a reply...