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
4 replies
Subscribers
8 subscribers
Views
3476 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Date/Time not saved if only Date is input when not required
joep45
over 7 years ago
We have new forms with Date Time fields where the field is not required. QA has pointed out that if you input only a Date but no time then nothing gets saved. Any suggested workarounds?
We have existing forms where the field is required and that is no longer an issue but it is now an issue when the field is not required.
OriginalPostID-236023
Discussion posts and replies are publicly visible
0
aayusha
Certified Senior Developer
over 7 years ago
Date and time field saves the value only when both the components are filled.
Can you make them default to some value, if user changes anything you for example only date then you can check that. If user doesn't want anything then they can erase the default value.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
GouthamKrishna
over 7 years ago
This is exactly the issue I was searching for! Date time field is only evaluating (executing its saveInto block) when time filed is interacted with. I'm unable to find a way to trigger saveInto when time or date OR both changes. Seems like a bug!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chandu
A Score Level 2
over 7 years ago
This is the default behaviour of Date and Time field. User needs to enter both date and time else we cannot able to save the value. Is that your requirement wants Date and Time field, if not you can use Date Field also.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
harishkumart
Certified Lead Developer
over 7 years ago
Hi Joep45 ,
Its true that saveInto of the date time field executes only when both the values are filled. As a work around you can pass now() to the rule input from where it is being called so that any interactions on either the date field or time filed will cause save in to to execute.
Note that if you change the date the time value remains same as now() and same with date also when time is changed. Hope this helps you.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel