Skip to main content

Form Designer - a simple form designer for FeinCMS

Project description

https://travis-ci.org/feincms/form_designer.png?branch=master

This form designer does not try to offer every last configuration possibility of Django’s forms, just through the administration interface instead of directly in Python code. Instead, it strives to be a tool which everyone can use right away, without the need for long explanations.

It offers a small set of predefined input fields such as:

  • Text fields (One line and multi line widgets possible)

  • E-mail address fields

  • Checkboxes

  • Dropdowns

  • Radio Buttons

  • Multiple selection checkboxes

  • Hidden input fields

Every field can optionally be declared mandatory, default values and help texts are available too. That’s it.

By default, form data is sent by e-mail to a freely definable e-mail address and stored in the database (a CSV export of saved submissions is provided too). It is possible to add your own actions, but that’s not documented yet. These actions aren’t hardcoded – they can be freely defined for every form defined through this form designer.

Configuring the export

The CSV export of form submissions uses the Python’s CSV module, the Excel dialect and UTF-8 encoding by default. If your main target is Excel, you should probably add the following setting to work around Excel’s abysmal handling of CSV files encoded in anything but latin-1:

FORM_DESIGNER_EXPORT = {
    'encoding': 'latin-1',
}

You may add additional keyword arguments here which will be used during the instantiation of csv.writer.

ReCaptcha

To enable [ReCaptcha](http://www.google.com/recaptcha) install [django-recaptcha](https://github.com/praekelt/django-recaptcha) and add captcha to your INSTALLED_APPS. This will automatically add a ReCaptcha field to the form designer. For everything else read through the django-recaptcha readme.

Override field types

Define FORM_DESIGNER_FIELD_TYPES in your settings file like:

FORM_DESIGNER_FIELD_TYPES = 'your_project.form_designer_config.FIELD_TYPES'

In your_project.form_designer_config.py something like:

from django import forms
from django.utils.translation import ugettext_lazy as _

FIELD_TYPES = [
    ('text', _('text'), forms.CharField),
    ('email', _('e-mail address'), forms.EmailField),
]

Version history

0.4

  • Built-in support for Django 1.7-style migrations. If you’re using South, update to South 1.0 or better.

0.3

  • Support for Python 3.3, 2.7 and 2.6.

  • Support for overridding field types with FORM_DESIGNER_FIELD_TYPES.

Visit these sites for more information

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

form_designer-0.7.1.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

form_designer-0.7.1-py2.py3-none-any.whl (20.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file form_designer-0.7.1.tar.gz.

File metadata

  • Download URL: form_designer-0.7.1.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for form_designer-0.7.1.tar.gz
Algorithm Hash digest
SHA256 69b5995f1735f841cc7813243bbfd43ef4b33c232d0cc8d9ffd796c6d899015d
MD5 6096b3ae43b225c1f3d76357780b4274
BLAKE2b-256 719ba3a7431a0ae504f7d8beeca8dd54a4fd3f8d824e92effa6a4cc291620f02

See more details on using hashes here.

File details

Details for the file form_designer-0.7.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for form_designer-0.7.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f9de2e1b459bf4f3204333b5bac21a486709443d1281ae693d9be5742fe05836
MD5 3eae5e53217f5ecf80d9e9249fb3fe56
BLAKE2b-256 bd186532a7935fb35484c4843d7ea5867c3f2b6830ccea929e0b702182f4c078

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page