C
claudia
Hi all,
I want to give validations for the integer field. If the field is
empty or it contains null value i am going to give the validation like this
(field should not be blank). for that i gave jscript validation like this
if(xpath.text==null || xpath.text==" ")
{
XDocument.UI.Alert("field should not be blank');
}
else if(xpath.text<=0)
{
XDocument.UI.Alert("field should be greater than zero');
}
else
{
}
..
..
..
in preview, if that text field is empty it shows the error message like this
"field should be greater than zero" . One more thing, i didn't give any
default value to the text field. I think some deafult values assigned to
the txt field according to the datatype. if anyone knows how to capture the
default values for the datatypes. please tell me.
by
Claudiarani
I want to give validations for the integer field. If the field is
empty or it contains null value i am going to give the validation like this
(field should not be blank). for that i gave jscript validation like this
if(xpath.text==null || xpath.text==" ")
{
XDocument.UI.Alert("field should not be blank');
}
else if(xpath.text<=0)
{
XDocument.UI.Alert("field should be greater than zero');
}
else
{
}
..
..
..
in preview, if that text field is empty it shows the error message like this
"field should be greater than zero" . One more thing, i didn't give any
default value to the text field. I think some deafult values assigned to
the txt field according to the datatype. if anyone knows how to capture the
default values for the datatypes. please tell me.
by
Claudiarani