Discussions

Expand all | Collapse all

Testing on date Field

  • 1.  Testing on date Field

    Posted 07-09-2018 10:30
    Hi,
    I have a Date field. When the user giving any random Text such as "afughauif", the form is taking "1-31-2018" as default value, Which I don't want.


    Suppose user given random input:

    But system is taking a particular date: 
    (01-??-2018)=> what can be logic behind this value?

    (and eventually when user clicks in the box )

            (01-31-2018)

    Instead, it should show an error message. Is their anyway to handle this situation?


  • 2.  RE: Testing on date Field

    Posted 07-09-2018 21:15
    Hi Vivek, 

    you could set the attribute of the date field as required. This will show an error message every time the date field is left empty or the user input doesn't match a date value. 


    Control + Right Click on the date field 
    Select " Edit the field Properties for this field"
    Check the Required Box in the Basics Section 

    I hope this will help 

    Ina