What wrong with the script below on click event?
Reset data but does not reset the instances back to one.
when there are more than one instances which is the default.
Thank you
var cResponse = app.alert({
cMsg: "Do you really want to reset the form?\rAll data will be lost!",
nIcon: 2, nType: 2,
cTitle: "Reset Form"});
// clear form only if response is "OK"
if (cResponse == 4) {
xfa.host.resetData();
xfa.form.remerge();
}
form1.page1.employeeInfo.Section1._KeyObjectives_Sub.setInstances(1);