iswg
asked on
Date Validation in R5
We have a date field in a layout region and would like to restrict only date values to be entered and not any other characters. it allows any character to be typed in the field, but performs its own built-in validation and displays 'Unable interpret time/date value'. we want to trap that and display our message. we have tried input validation, field exiting event etc. If we set the initial value of the date field as "" when calling the dialogbox, the error message appears. if we set a date as the initial value, the initial date is taken as the value for that field, even though we type some characters into it.
How to validate this date field with our error message?
How to validate this date field with our error message?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What about just leave the initial value blank, ie no need to put anything, not even "", just blank.
Cool ISWG !
I am back to Form ! :)
Use !@IsDate Function to check for the content and @Failure or @Return to give you proper error message !
This will suppress the notes internal message
:)
Arun
I am back to Form ! :)
Use !@IsDate Function to check for the content and @Failure or @Return to give you proper error message !
This will suppress the notes internal message
:)
Arun
ASKER
we have tried the exiting script also. the field has to be a date field only because we are using the native OS style type (with the calender dates). does this code depend upon the initial value we are giving to this field? How to make this work when we give "" as the initial value to this field?