Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to clear all fields? #60

Open
ruslanchek opened this issue Jun 14, 2016 · 2 comments
Open

How to clear all fields? #60

ruslanchek opened this issue Jun 14, 2016 · 2 comments

Comments

@ruslanchek
Copy link

No description provided.

@frostney
Copy link
Contributor

When you give your form a reference, you can call refs.form.reset() on that reference.

Example:

class MyComponent extends React.Component {
  resetForm = () => {
    this.refs.form.refs.reset();
  };

  render() {
    return (
      <Form ref="form">{/* Input elements here */}</Form>
   );
  }
}

@mikethejet
Copy link

mikethejet commented Feb 24, 2017

It will refresh values based on model? or not? .. i want to update form values by model attribute but it not works ..its parsed only for one time? There is no way to update form after was loaded by initial model values?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants