Avatar

Level 10

You can tweak the whole code of Submit button's click event as follows:

// check all your conditions e.g

if(txtUserName.rawValue==null || txtUserName.rawValue=="")

{

     xfa.host.messageBox("Please enter the User Name.");

}else

{

          // place all the pre-defined code here...

}

I have tried this in Workspace ES and it works... hope this will help you

Nith