Hi All,
Our Requirement is that we have two tabs in one Tab i have user Info on the another Tab is about filling Loan details . I have made certain fields required in both tabs.When I switching to another tab it is not validating the required fields of the previous Tab and storing it in the datastore . I used parent and child interface model to have these tabs.
Is there any method to achieve this requirement?
Thanks,
saidivya.
Discussion posts and replies are publicly visible
You'll have to do the validation "manually" in this case. A favorite way of mine is to create a "Validation rule" (expression rule) which takes as inputs basically all the data (CDTs, etc) the user is in charge of populating in any of the tabs, and does a simple/quick check that each required field is filled (and, if needed, valid in other ways).
You would then use this in a section-level or form-level validation using a!validationMessage() set to validate on "Submit", and if any fields are missing/invalid on any not-currently-visible tab(s), the validation will inform the user that they need to check the other tab(s) for required / invalid fields. If you toy with it enough, you might even be able to enhance this to where it could tell the user which tab currently has issue(s), though TBH i'd shoot for handling the simpler version of this first.
Thanks Mike