diff --git a/js/components/ascribe_forms/form.js b/js/components/ascribe_forms/form.js
index 182e7ba7..115a8d8e 100644
--- a/js/components/ascribe_forms/form.js
+++ b/js/components/ascribe_forms/form.js
@@ -41,7 +41,9 @@ let Form = React.createClass({
// It will make use of the GlobalNotification
isInline: React.PropTypes.bool,
- autoComplete: React.PropTypes.string
+ autoComplete: React.PropTypes.string,
+
+ onReset: React.PropTypes.func
},
getDefaultProps() {
@@ -61,6 +63,12 @@ let Form = React.createClass({
},
reset() {
+ // If onReset prop is defined from outside,
+ // notify component that a form reset is happening.
+ if(this.props.onReset && typeof this.props.onReset === 'function') {
+ this.props.onReset();
+ }
+
for(let ref in this.refs) {
if (typeof this.refs[ref].reset === 'function'){
this.refs[ref].reset();
@@ -184,8 +192,16 @@ let Form = React.createClass({
buttons = (