All Projects → substance → forms

substance / forms

Licence: MIT license
Web forms with Substance.

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to forms

Mform
Spielend einfach umfangreiche Modul-Input-Formulare erzeugen.
Stars: ✭ 65 (+364.29%)
Mutual labels:  forms, editing
formz
A unified form representation in Dart used at Very Good Ventures 🦄
Stars: ✭ 262 (+1771.43%)
Mutual labels:  forms
React Json Editor
A dynamic form component for react using JSON-Schema.
Stars: ✭ 201 (+1335.71%)
Mutual labels:  forms
Form bloc
🔥 Dart and Flutter Package 🔥 Easy Form State Management using BLoC pattern 🔥 Wizard/stepper forms, asynchronous validation, dynamic and conditional fields, submission progress, serialization and more! 🔥
Stars: ✭ 239 (+1607.14%)
Mutual labels:  forms
Documentation
📋 Official documentation/website
Stars: ✭ 202 (+1342.86%)
Mutual labels:  forms
Ziptastic Jquery Plugin
This is a jQuery plugin that shows how Ziptastic could be used.
Stars: ✭ 244 (+1642.86%)
Mutual labels:  forms
Jsonform
Build forms from JSON Schema. Easily template-able. Compatible with Bootstrap 3 out of the box.
Stars: ✭ 2,416 (+17157.14%)
Mutual labels:  forms
react-apollo-form
Build React forms based on GraphQL APIs.
Stars: ✭ 195 (+1292.86%)
Mutual labels:  forms
Formspree
Easy HTML form without PHP or JavaScript
Stars: ✭ 2,749 (+19535.71%)
Mutual labels:  forms
Svelte Forms Lib
📝. A lightweight library for managing forms in Svelte
Stars: ✭ 238 (+1600%)
Mutual labels:  forms
Validate.js
Lightweight JavaScript form validation library inspired by CodeIgniter.
Stars: ✭ 2,540 (+18042.86%)
Mutual labels:  forms
Formex
A better form library for Phoenix
Stars: ✭ 206 (+1371.43%)
Mutual labels:  forms
Final Form
🏁 Framework agnostic, high performance, subscription-based form state management
Stars: ✭ 2,787 (+19807.14%)
Mutual labels:  forms
Jcf
Advanced form elements customization using CSS/JS
Stars: ✭ 203 (+1350%)
Mutual labels:  forms
altinn-studio
Next generation open source Altinn platform and applications.
Stars: ✭ 91 (+550%)
Mutual labels:  forms
Rich Model Forms Bundle
Provides additional data mappers that ease the use of the Symfony Form component with rich models.
Stars: ✭ 198 (+1314.29%)
Mutual labels:  forms
Validate
A lightweight form validation script.
Stars: ✭ 227 (+1521.43%)
Mutual labels:  forms
Fui
Add CLI & form interface to your program. Docs: https://docs.rs/fui
Stars: ✭ 244 (+1642.86%)
Mutual labels:  forms
enform
Handle React forms with joy 🍿
Stars: ✭ 38 (+171.43%)
Mutual labels:  forms
forms-bootstrap
👾 Bootstrap 4 forms for Nette framework
Stars: ✭ 17 (+21.43%)
Mutual labels:  forms

Substance Forms

Substance Forms is a JavaScript library for creating better web forms. You can mark areas of the page as editable and access the contents with a simple JavaScript API. You have full control over markup and styling, and you can mix the rich text inputs with classic form elements.

See the demos.

Project Status: Beta

Usage

Download the latest release and use like shown below.

<html>
<head>
  <script type="text/javascript" src="substance-forms.js"></script>
  <style>
    /* FontAwesome is used to display the icons shown in the overlay */
    @import 'lib/font-awesome/css/font-awesome.min.css';
    /* Substance Forms looks best with a CSS reset */
    @import 'substance/substance-reset.css';
    /* Substance Forms UI styles */
    @import 'substance-forms.css';
  </style>
</head>
<script>
  var form
  window.addEventListener('load', function() {
    forms = new SubstanceForms()
    /* Activate rich text editing */
    forms.addRichTextArea('about', document.getElementById('about'), {
      enabledPackages: ['heading', 'strong', 'emphasis', 'link', 'list', 'table']
    })
  })
  function _onSubmit() {
    let forms = window.substanceForms
    let formData = {
      about: forms.getHTML('about')
    }
    console.log('Form data', formData)
  }
</script>
<body>
  <!-- The editable attribute marks editable areas -->
  <div id="about">
    <p>Tell us <strong>something</strong> about <em>you</em>.</p>
  </div>
  <button onclick="_onSubmit()">Submit</button>
</body>
</html>

For a complete usage example see here. Learn advanced usage by inspecting the comments example.

Development

If you want to contribute, you can set up a development environment like so:

$ git clone https://github.com/substance/forms.git
$ npm install
$ npm start

For faster builds you can run:

$ npm run dev

But then you need a browser that can run ES6 code natively.

Credits

This project is developed by Substance in collaboration with the University of California Curation Center.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].