react-bootstrap-validation
react-bootstrap-validation copied to clipboard
How to clear all fields?
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>
);
}
}
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?