15π
jsonform β Build forms from JSON Schema. Easily template-able. Compatible with Twitter Bootstrap out of the box.
30π
Iβve been looking for the same, and turns out there are some good options. These are the best libraries I could find on GitHub:
-
JSON Editor (plain JS) (demo)
-
Angular Schema Form (AngularJS) (demo)
-
React JSONSchema Form (React) (demo)
- [Django]-How to hide some fields in django-admin?
- [Django]-">", "<", ">=" and "<=" don't work with "filter()" in Django
- [Django]-How to test "render to template" functions in django? (TDD)
7π
You are looking for Alpaca Forms.
http://www.alpacajs.org
JSON Schema driven forms using jQuery with layout engines for Bootstrap, jQuery UI / Mobile. Itβs very extensible and pretty decked out.
Apache 2.0 licensed and awesome community (I am a code committer).
- [Django]-Django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
- [Django]-How can I handle Exceptions raised by dango-social-auth?
- [Django]-Django template can't loop defaultdict
7π
Orβ¦ you could take a look at outperform. Itβs a small javascript form generator library that I recently wrote to support my own projects because I got fed up by the fact that all the form generators that I looked at either had a ton of dependencies, or were distinctly larger than my single page web-application.
I mean, letβs face it: if my SPA is like 20KB unminified but gzipped, then I expect library routines which do something simple as generating a form to be significantly smaller. Its main features would be:
- Zero dependencies.
- Less filling (unminified but gzipped: <2KB).
- Native HTML5/browser validation support for all HTML5+ input types.
- Custom validation seemlessly integrated.
- Supports all web frameworks out there (including Bootstrap).
- Autorefills half-filled forms when reloading a page in all browsers.
- JSON set/get for all form values.
- [Django]-Django query datetime for objects older than 5 hours
- [Django]-PyCharm Not Properly Recognizing Requirements β Python, Django
- [Django]-Django and query string parameters
5π
Just stumbled upon this question and wanted to add this new option:
JSONForms extends the view-model approach by eliminating the need to write HTML templates in order to create forms by leveraging the capabilities of JSON and JSON schema. It supports React, Angular, and Vue.
- [Django]-Composite primary key in django
- [Django]-Django {% if forloop.first %} question
- [Django]-Django β FileField check if None
5π
Form generation from JSON Schema is a common practice, specially for automatically generated user interfaces.
In your case, if you are only interested in creating ONE form, maybe it will be better to directly code it.
Here is a library I have created that hopefully you find interesting:
JSON Schema to HTML form generator, supporting dynamic subschemas (on the fly resolution). Extensible and customizable library with zero dependencies. Bootstrap add-ons provided
Live demo at http://brutusin.org/json-forms
- [Django]-Difference between different ways to create celery task
- [Django]-Django models: get list of id
- [Django]-Images from ImageField in Django don't load in template
2π
Look at this project
https://github.com/mirshahreza/json-edit
A jquery plugin to turn json schema to form
It may be helpful in your scenario
- [Django]-How do I perform a batch insert in Django?
- [Django]-How to change Django Admin Custom list field label?
- [Django]-Django: using more than one database with inspectdb?
2π
Have a look at this demo (source code) of ngx-schema-form :
- Takes a JSON schema file
- Generates that into a fully working editable web page form
- Saves changes to the JSON model as a Javascript object
- Allows adding custom validator code for any section
This works really well for me (I only found it a couple of days ago). I use it with the latest Angular, and it is working exactly as documented.
- [Django]-Django Model Fields Indexing
- [Django]-Is there a way to loop over two lists simultaneously in django?
- [Django]-How to use pdb.set_trace() in a Django unittest?
2π
I have found https://form.io, itβs by far, the most advanced project in this matter i have found. Draggable form creates the schema that renders. His core is opensourced.
- [Django]-Is it possible to use FastAPI with Django?
- [Django]-How to check if ManyToMany field is not empty?
- [Django]-How do I access the properties of a many-to-many "through" table from a django template?
1π
Another option is βjson-schema-js-gui-modelβ. It converts the json schema into a gui model that you can easily use in any web framework to create a custom form. For detailed advice on the last step, the angular 2 docs has a recipe for creating a dynamic form from a gui model.
- [Django]-Django Sitemaps and "normal" views
- [Django]-Django admin: make field editable in add but not edit
- [Django]-Nginx doesn't serve static