Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
5 replies
Subscribers
7 subscribers
Views
2666 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hey all, Does anyone happen to have any update or working on-form workaroun
Mike Schmitt
Certified Lead Developer
over 9 years ago
Hey all,
Does anyone happen to have any update or working on-form workarounds to the current bug with the DateTime field?
In short, if you have a dateTime field and ONLY the date is entered, upon submission no value is saved into the variable. The problem is, if the field has only the date entered, it bypasses the "required" conditional validation and does not validate at all. Therefore we have forms where a dateTime is required (and process-critical), being submitted by users who forget to enter a time and therefore promoting a value of "null", which proceeds to cause pretty severe issues in the inner-workings of our subsequent processing. Previously the validation worked so we didn't have this issue, and we'd never built post-form doublechecks to ensure valid dates had been entered (because on-form validations, etc).
I believe an issue had been raised about this previously, but I've never heard any update, and the issue has persisted into 7.11.
DateTime Bug.sail
OriginalPostID-180013
OriginalPostID-180013
Discussion posts and replies are publicly visible
0
Eric Schiavo
Appian Employee
over 9 years ago
Mike,
I got this response from the support ticket I created for this issue:
The workaround is:
- Preserve "required:true"
- Add a custom validation too as seen below
Example
a!dateTimeField(
label: "Registration Date and Time",
labelPosition: "ABOVE",
saveInto: ri!myDateTime,
value:ri!myDateTime,
required: true,
validations:if(isnull(ri!myDateTime), "Registration date and time is required", null)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mike Schmitt
Certified Lead Developer
over 9 years ago
Thanks Eric, that seems to be a pretty useable work-around for the moment.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Chris
over 9 years ago
Hey guys, has this issue been resolved and/or what versions does it affect? I just tried to replicate the issue in 7.10 and am not able, all appears to be working ok for me.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mike Schmitt
Certified Lead Developer
over 9 years ago
I had found the issue in both 7.10 as well as 7.11; maybe it's been addressed in a hotfix? What happens when you try to replicate / what exactly are you trying?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Chris
over 9 years ago
Could be.. I am using your exact code posted here, when I enter the date portion ONLY (no time) and submit, the validation error is seen and thus the form would not submit (I verified by using in a process model as well). At this time the date entered in the field reverts to null, since it is not saved off to a local variable. So, it appears correct.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel