Hello all,
I would like to check for errors in the form when it opens but the
problem is when I try to fill the form for the first time, it shows
the error message. What I would like to do is I dont want to show
error to the user for the first time but if the user has already saved
the form and opens second time, I would like to display error that you
havenot filled blah blah sections.
One solution I thought is getting the file name. If file name ends
with .xml it means that it is never saved. When user opens the form
for the first time, the file name might be something different. so I
can check it but I am not able to get file name. Is there any way I
can get file name? from XDocument.Solution.URI, I am getting form
template url but not the filled form file location
Does any one of you have solution for this problem?
Thanks
K.Ramana Reddy(GGK Tech) - 25 Sep 2007 04:08 GMT
Hi,
we have thisXDocument.IsNew to check the form is new or already submitted.
var isNew = thisXDocument.IsNew;
If(isNew)
{
// Form is new
}
else
{
//Form is already submitted.
}

Signature
k.Ramana Reddy
http://www.GGKtech.com
> Hello all,
>
[quoted text clipped - 15 lines]
>
> Thanks
emailmygroup@gmail.com - 25 Sep 2007 15:47 GMT