Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
+3
person also asked this
people also asked this
Replies
4 replies
Answers
1 answer
Subscribers
9 subscribers
Views
2749 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Fitnesse for Appian
Anu
over 7 years ago
Hi All ,
I have a scenario where I have to validate a date picker field which displays todays date . How do I achieve this in fitnesse ? Please advise
Note :- The field is disabled/read-only .
OriginalPostID-270384
Discussion posts and replies are publicly visible
Parents
0
martinc8721
over 7 years ago
Hi Anushris,
You could try the following expression
load(
/*local!newDueDate_date: todate("3/16/2017"),*/
local!newDueDate_date: ri!runningDate,
a!dateField(
label: "Date",
labelPosition: "ADJACENT",
value: local!newDueDate_date,
readOnly: "true",
validations: {
if(
todate(
local!newDueDate_date
) <> todate(
today()
),
"Date must be today’s date",
{}
)
},
requiredMessage: "Date is required",
required: true()
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
martinc8721
over 7 years ago
Hi Anushris,
You could try the following expression
load(
/*local!newDueDate_date: todate("3/16/2017"),*/
local!newDueDate_date: ri!runningDate,
a!dateField(
label: "Date",
labelPosition: "ADJACENT",
value: local!newDueDate_date,
readOnly: "true",
validations: {
if(
todate(
local!newDueDate_date
) <> todate(
today()
),
"Date must be today’s date",
{}
)
},
requiredMessage: "Date is required",
required: true()
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data