-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Request] get data as javascript object #318
Comments
Internally formBuilder uses an array of objects as the formData. You can get access to this from jQuery's
|
@kevinchappell formData is not an Array of objects. It's a String representation of this array. That's the point I'm talking about. I should be able to get this array and not the String. You should at least have both. Something like getData() and getJsonData(). |
How about |
@kevinchappell That's great! Maybe let default to js since it's is the only that you don't need to apply any transformation to the data. Like: getData() => js array of objects
getData('xml') => xml
getData('json') => json |
I downloaded j query form builder project.In this i am getting code xml format .but i need code in html format .i replaced xml to html.but getting below error.What i have to do? can u solve fast? Uncaught TypeError: fb.actions.html is not a function |
@nareshananthoju if you want HTML can't you just do getElementById('something').innerHTML? |
formData is xml or json String but I really needed the javascript object itself. I'm using node.js / mongodb and stringfy / parse the json data string is pointless.
My advise for the next version is add getters and setters for all data in the object / class / component.
For now I altered form-builder.js and added a getData action:
The text was updated successfully, but these errors were encountered: