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
9 replies
Subscribers
6 subscribers
Views
4819 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
How I can validate (in an input form) if a date field is filled in? I tried
Giobis
over 12 years ago
How I can validate (in an input form) if a date field is filled in?
I tried with windows. formAPI.getValue but doesn't works.
any suggestions?
thanks
...
OriginalPostID-66608
OriginalPostID-66608
Discussion posts and replies are publicly visible
0
Giobis
over 12 years ago
Appian version is 6.6.1
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Alex Weller
Appian Employee
over 12 years ago
Use an expression to check if the value meets your desired conditions. If not, loop back to the form with a chained gateway and display a show only if message to alert the user.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Giobis
over 12 years ago
Thanks alex but, if is possible, I want make a validation direct on the input form without xor in process...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Alex Weller
Appian Employee
over 12 years ago
This method is preferred as it uses all out-of-the-box functionality and allows forms to be tempo/mobile enabled
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Giobis
over 12 years ago
Alex, You are right ! But I'm curious about other solutions (eg. FormApi ) :)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
akhilan
over 12 years ago
If you want to use JS, you can use the below code -
var selectedDate = FormAPI.getValue(selectedDateFieldId).id;
var selectedDateParts = selectedDate.split("/");
This will give you an array which contains, the date, month and year.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Giobis
over 12 years ago
Akhilan, thanks. .. I'll try this solution :)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Giobis
over 12 years ago
How I can check if one Date are filled or not?
I need to checking if the user filling a date in a form...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
akhilan
over 12 years ago
To stay out of the box, I would recommend following Alex's suggestion of using an Appian expression for the validation. If you want to use JS, then you could do a null check on the date field value inside your javascript to determine is a value was entered or not.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel