Skip to main content

Embed Jotform forms in wagtail.

Project description

CircleCI Maintainability Test Coverage

Wagtail Jotform

Embedable Jotform forms for wagtail pages.

Installation

Install from pypi:

pip install wagtail-jotform

Configuration

You will need an API key from jotform. Add the following variables to your settings.

WAGTAIL_JOTFORM = {
    "API_KEY": "somekey",
    "API_URL": "https://api.jotform.com",
}

If your Jotform account is in EU safe mode, your JOTFORM_API_URL should be https://eu-api.jotform.com

Add the following to you INSTALLED_APPS in settings, note that wagtail_jotform depends on routable_page:

INSTALLED_APPS = [
    ...
    'wagtail_jotform',
    "wagtail.contrib.routable_page",
]

Thank you page

Thank you pages work via RoutablePageMixin.

When a form is created, the Jotform thankurl is set with your created forms thankyou page url. E.G https://mysite.com/formpage/thank-you. So when the form is submitted, the user will be redirected accordingly and be show the 'thank you' data specified on on the form page added.

Overriding tempaltes

Wagtail Jotform has 2 templates:

embeded_form_page.html
thank_you.html

You can override these templates in your project by adding them in the following location:

your_project_root/
  templates/
    wagtial_jotform/
        embed_form_page.html
        thank_you.html

Tests

coverage run ./runtest.py
coverage report

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

wagtail-jotform-0.0.9.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

wagtail_jotform-0.0.9-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file wagtail-jotform-0.0.9.tar.gz.

File metadata

  • Download URL: wagtail-jotform-0.0.9.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.2

File hashes

Hashes for wagtail-jotform-0.0.9.tar.gz
Algorithm Hash digest
SHA256 0329475501aa143f95807821a5942d2c2649c1468590bcdba4005ae56183d654
MD5 2cc22a652ec0dadd0794a881e8bd3c50
BLAKE2b-256 796e59bfe68799f1408c8a89594f3a4e91d669be23b5d7cb1a461e62bb22e879

See more details on using hashes here.

Provenance

File details

Details for the file wagtail_jotform-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: wagtail_jotform-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.2

File hashes

Hashes for wagtail_jotform-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 5e3a60d1c4adb9948059412b0e44a1c7487c806d561553833238160be0333008
MD5 b05e49f0bc7a3b096187b04e379eef43
BLAKE2b-256 4ef79e1fbfabf324c5c2b354e4ffc3214df564b0a002fc0dd4b16952643c8b6d

See more details on using hashes here.

Provenance

Supported by

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