We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When passing data into the form via the value key, the "radiobuttons" type does not show the data. This does work if you change the type to "radios".
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Getting started with JSON Form</title> <link rel="stylesheet" type="text/css" href="deps/opt/bootstrap.css" /> <style></style> </head> <body> <h3>Requests and Issues Settings</h3> <form></form> <div id="res" class="alert"></div> <script type="text/javascript" src="deps/jquery.min.js"></script> <script type="text/javascript" src="deps/underscore.js"></script> <script type="text/javascript" src="deps/opt/jsv.js"></script> <script type="text/javascript" src="lib/jsonform.js"></script> <script type="text/javascript"> $('form').jsonForm({ "schema":{ "email":{ "type":"object", "properties":{ "securityOptions":{ "type":"string", "title":"Security Options", "enum":["Off","SSL","TLS"] } } } }, "form": [ { "type": "submit", "title": "Save" }, { "type": "fieldset", "expandable": true, "title": "Email Settings", "items": [ { "key":"email.securityOptions", "type":"radiobuttons", "prepend":"Security Options", "notitle":true, "activeClass": "btn-success" } ] } ], onSubmit: function (errors, values) { if (errors) { $('#res').html('<p>I beg your pardon?</p>'); } else { alert (JSON.stringify(values)); } }, "value":{ "email":{ "securityOptions":"TLS" } } } ); </script> </body> </html>
The text was updated successfully, but these errors were encountered:
As I see it, it's just the class that is missing on the Bootstrap button. I'll issue a fix soon.
Sorry, something went wrong.
Hi @mw777eds
I think this has been fixed by 6ae9ebf
Can you confirm and close the issue if it's good for you ? Thanks, BR
Closing as this has been fixed already. Please reopen if you still have the problem
No branches or pull requests
When passing data into the form via the value key, the "radiobuttons" type does not show the data. This does work if you change the type to "radios".
The text was updated successfully, but these errors were encountered: