


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.
Views
Replies
Sign in to like this content
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
Sign in to like this content
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
Sign in to like this content
Total Likes
Views
Replies
Sign in to like this content
Total Likes
try changing < to <
Views
Replies
Sign in to like this content
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
Sign in to like this content
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
Sign in to like this content
Total Likes
Views
Replies
Sign in to like this content
Total Likes
Views
Replies
Sign in to like this content
Total Likes