()
| 82 | } |
| 83 | |
| 84 | onClickSubmit() { |
| 85 | // Set state to submit |
| 86 | // This will cover the form with a spinner and trigger validation in FormSandbox |
| 87 | // and a possible onValidatedCall callback |
| 88 | this.setState({validated: false, validate: true}); |
| 89 | } |
| 90 | |
| 91 | onValidated(data) { |
| 92 | // when the data is validated, tell controller to encrypt and submit |