Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListTime Field Validation ExpressionTime Field Validation Expression
Previous
 
Next
New Post
8/15/2010 10:45 PM
 
Hey Will thanks for the replies.  My problem isn't finding a regex to do validations of time, it's getting the module to use it.  I have tested this pretty well, and it seems no matter what I do It just reports invalid time format errors when the field type is time.  Now if I change the type to a text field type then my validation expression works.  I just don't like the leght of the text field type.  It realy seems to me that if you select the field type time, then it should tell you why your time format is wrong.  I think what is getting my users is that they need to put in the AM PM.
 
New Post
8/16/2010 12:22 AM
 
This sounds like a possible bug or needed enhancement for the module.  I would suggest you adding this to the Form and List Issue Tracker, and referencing this forum thread.

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
8/16/2010 6:03 PM
 
Sorry for jumping in so late.

The regex validation doesn't work that way, and I assume it is quite useless for your requirements.

The input of time values happens inside a text box, and as a first step the code tests using IsDate() whether the input string is a valid (date) time or not. IsDate() depends on the current locale. For example am/pm is not required for German locale.

Afterwards the input string is parsed to  a DateTime, which again gets transformed to a string in a ISO8601 format (e.g. 10:21 pm -> 0000-00-00:T22:21:00)

This string format can now be examined with the regex. For example, you may enter regexp that enforces full hours. The regular expression has NO influence about the input format . 
 
New Post
8/16/2010 7:50 PM
 
Excellent walk-through Stefan.  However, there's nothing in the UI to help the end-user understand all of that.  :(  A "newbie" will just assume it didn't work.

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
8/16/2010 8:54 PM
 
Will, please enter your enhancement suggestions to the project's issue tracker, thank you :)

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListTime Field Validation ExpressionTime Field Validation Expression


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out