Skip to content

Commit

Permalink
Update example onSave to have correct arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
instagibb authored and kevinchappell committed Mar 9, 2020
1 parent a74d55d commit 8a8551e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/formBuilder/options/onSave.md
Expand Up @@ -4,7 +4,7 @@ Callbacks to run on editor save.
## Usage
```javascript
var options = {
onSave: function(formData) {
onSave: function(evt, formData) {
toggleEdit();
$('.render-wrap').formRender({formData});
window.sessionStorage.setItem('formData', JSON.stringify(formData));
Expand Down

0 comments on commit 8a8551e

Please sign in to comment.