How to check date in input form fields

ramprakasht3196

03-06-2020

Hi all,

I had created custom field in delivery Input form.

ramprakasht3196_0-1591195590746.png

While creating delivery if this field is empty , Pop up message should be displayed. I used below code in the input form.

ramprakasht3196_1-1591195834585.png

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.

 

 

View Entire Topic

Jyoti_Y

MVP

03-06-2020

Hi,

 

You can check it using below syntax:

 

<check expr="@smsMessageExpiryDt ='' or @smsMessageExpiryDt &lt; GetDate()">
<error>Expiry date cannot be empty and should be in future</error>
</check>