We have users that want to enter date as mmddyyyy without slashes. They don'

We have users that want to enter date as mmddyyyy without slashes. They don't want to use the DATE type, so this will be a string/text. Also they would like to see this date displayed after they enter is with the slashes, so mm/dd/yyyy. Does anyone has a example, I guess javascript to validate what user entered is a valid date? fyi we noticed the Appian Date type does not validate that the date is valid if you manually enter the date, for example if you enter 13/99/2013 and tab away it does not tell you its invalid, but instead converts to some kind of date. Thanks!...

OriginalPostID-128041

OriginalPostID-128041

  Discussion posts and replies are publicly visible

Parents
  • Does anyone know why we can't use functions on a form? For example just as a test on a Text field I added a "Event Rule" on "Change". The script is "var testDate = todate(11122014)". So when Im on this field on the form an tab away after entering something I get an exception thrown saying the rule is invalid. Does anyone know what is wrong with the script? Thanks!
Reply
  • Does anyone know why we can't use functions on a form? For example just as a test on a Text field I added a "Event Rule" on "Change". The script is "var testDate = todate(11122014)". So when Im on this field on the form an tab away after entering something I get an exception thrown saying the rule is invalid. Does anyone know what is wrong with the script? Thanks!
Children
No Data