I have a xpages where I am using a Tabbed Panel where 2 tabs are present. In both the tabs I have 2 fields.
Tab-A
Name field
Age field
Tab-B
Address field
Gender field
I have a save button, I need client side validation for all these fields.
When I am in Tab-A and clicking on Save button, it is working fine. But when I am in Tab-B and clicking on Save button, it gives an error “Object required”, I try to investigate on it and found that Tab-A Name field is not accessible by JavaScript.
frmXPPersonal is the main xpage. In that xpage you will find 4 tabs.
In the first tab we have 4 fields are mandatory.
In the second tab we have 4 fields are mandatory.
My problem is that, in the first tab I filled all the fields and click on save button and the document got saved. But in the second tab’s mandatory fields are not giving any error message.
After filling first tab’s fields, If I change to the second tab and click on the save button, then only it is giving the error message for second tab’s mandatory fields.
Please help me, how I can validate all the mandatory fields in the different tabs.
I already send the demo database to your given mail id.