Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / August 2005

Tip: Looking for answers? Try searching our database.

Form Valid Property

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tim Philomeno - 18 Aug 2005 18:53 GMT
is there a property that gets set when a "must Fill" or "invalid data"
condition exists in the form that can be sampled and prevent the
save/submit/signing....

kind of like Page.IsValid in asp.net

Thanks!

Tim P.
JerryTh [MSFT] - 19 Aug 2005 00:55 GMT
You can use the 'Error Board' to see what errors are present.
Here are some (rough) samples to give you an idea of how to get to the board.

function CTRL4_5::OnClick(eventObj)
{
    // Error Count
    XDocument.UI.Alert(XDocument.Errors.Count);
}

function CTRL5_5::OnClick(eventObj)
{
    // Show Error Msg #1
    if (XDocument.Errors.Count > 0)
        XDocument.UI.Alert(XDocument.Error(0).ShortErrorMessage);
}

function CTRL7_5::OnClick(eventObj)
{
    // Add Error Msg #1
    XDocument.Errors.Add(xmlDataFld1, Empty, "Msg 1", "Long Msg 1", 1);
}

function CTRL10_5::OnClick(eventObj)
{
    // Delete All Ctrl #1 errors
    XDocument.Errors.Delete(xmlDataFld1, Empty);
}

function CTRL11_5::OnClick(eventObj)
{
    // Delete all errors
    XDocument.Errors.DeleteAll();
}

Signature

This posting is provided "AS IS" with no warranties, and confers no rights.
Sample code subject to http://www.microsoft.com/info/cpyright.htm
Do not send email to this alias. It is for newsgroup only

> is there a property that gets set when a "must Fill" or "invalid data"
> condition exists in the form that can be sampled and prevent the
[quoted text clipped - 5 lines]
>
> Tim P.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.