----- PurchaseOrderConfirmation.PurchaseOrderConfirmation.ContactInfo.PartnerName[0]::exit - (JavaScript, client)
var partName = PartnerName.rawValue;
if (partName==null)
{
xfa.host.messageBox("Please enter partner name!");
xfa.host.setFocus("xfa.form.PurchaseOrderConfirmation.PurchaseOrderConfirmation.ContactInfo.PartnerName");
}
----- PurchaseOrderConfirmation.PurchaseOrderConfirmation.ContactInfo.Contact::exit - (JavaScript, client)
var contact=Contact.rawValue;
if( contact==null)
{
xfa.host.messageBox("Contact is compulsory!");
xfa.host.setFocus("xfa.form.PurchaseOrderConfirmation.PurchaseOrderConfirmation.ContactInfo.Contact");
}
else if(isNaN(contact))
{
xfa.host.messageBox("Contact number must be digits only!");
xfa.host.setFocus("xfa.form.PurchaseOrderConfirmation.PurchaseOrderConfirmation.ContactInfo.Contact");
}
As above,I've tried the focus you gave me. However,it keeps on prompting the partnername error msg, then check null for contact and prompt contact error msg at the same time.
I also have 2 fields with the same Name. Eg. PartnerName[0] and PartnerName[1]. How do I make sure it is pointing to the right one?
xfa.host.setFocus("xfa.form.PurchaseOrderConfirmation.PurchaseOrderConfirmation.ContactInfo.PartnerName[0]");
As follows, I used PartnerName[0] but it says missing name.
Thanks a lot!!!