Hi all,
I had created custom field in delivery Input form.
While creating delivery if this field is empty , Pop up message should be displayed. I used below code in the input form.
Now I need to display alert message if the smsMessageExpiryDt less than current date.
Could you please suggest me , how to compare smsMessageExpiryDt with current date.
Thanks in advance.
Thanks,
Ram.
Solved! Go to Solution.
Views
Replies
Total Likes
Hello @ramprakasht3196 ,
This is the correct syntax,
<leave>
<check expr="@smsMessageExpiryDt!='' and @smsMessageExpiryDt >= GetDate() ">
<error>Expiry date cannot be empty and should be in future</error>
</check>
</leave>
Testing screenshot here:
Thanks
Views
Replies
Total Likes
Hello @ramprakasht3196
Try this code:
<check expr="@smsMessageExpiryDt !='' or @smsMessageExpiryDt < getDate()">
<error>Expiry date cannot be empty and should be in future</error>
</check>
Let me know if that works
Views
Replies
Total Likes
Views
Replies
Total Likes
try changing < to <
Views
Replies
Total Likes
Hi,
You can check it using below syntax:
<check expr="@smsMessageExpiryDt ='' or @smsMessageExpiryDt < GetDate()">
<error>Expiry date cannot be empty and should be in future</error>
</check>
Views
Replies
Total Likes
Hello @ramprakasht3196 ,
This is the correct syntax,
<leave>
<check expr="@smsMessageExpiryDt!='' and @smsMessageExpiryDt >= GetDate() ">
<error>Expiry date cannot be empty and should be in future</error>
</check>
</leave>
Testing screenshot here:
Thanks
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies