Livecycle eg subform reset Resetting the values of the current subform
this.rawValue = this.parent.index + 1;
To reset the default values add a click event to the Clear button. You need a dynamic reference syntax expression because the detail is a repeating subform and must be reflected in the reference syntax expression. In this situation, it is easier to build the resetData parameters separately.
var f1 = this.parent.somExpression + “.TextField2″ + “,”;
var f2 = f1 + this.parent.somExpression + “.DropDownList1″ + “,”;
var f3 = f2 + this.parent.somExpression + “.NumericField1″;
// …and pass the variable as a parameter.
xfa.host.resetData(f3);

Resetting the values of the current subform