Skip to content

Commit

Permalink
Remove old info from data demo doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinchappell committed Oct 18, 2016
1 parent e00dfb1 commit 8e08fbc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/formBuilder/demos/data.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Getting Data

There are a couple ways to grab the generated data, the most common and easiest is to simply grab the textarea value. Since formBuilder saves it's data as plain XML string, you can read the textarea's value as you would any field value with:
```
var fbTemplate = document.getElementById('fb-template'),
formData = fbTemplate.value;
var formBuilder = $fbEditor.formBuilder().data('formBuilder');
var formData = formBuilder.formData;
```

There is also a jQuery data way to grab the data as demonstrated here:
Expand Down

0 comments on commit 8e08fbc

Please sign in to comment.