Skip to main content

tests codecov black Total alerts

Wagtail Jotform

Embedable Jotform forms for Wagtail pages.

Wagtail Jotform works by providing a new EmbeddedFormPage page type with a form choice field. Values for this form field are populated from the Jotform API.

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",
    "LIMIT": 50,
}

LIMIT is the number of results in each result set for form list. Default is 50. Maximum is 1000.

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

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

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

Thank you page

Thank you pages work via Wagtail's RoutablePageMixin.

When a form is created, the Jotform thankurl is set with your created form's thank you page URL, e.g. https://mysite.com/formpage/thank-you. 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 templates

Wagtail Jotform has two templates:

embedded_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/
    wagtail_jotform/
        embed_form_page.html
        thank_you.html

Tests

# Install the development environment
poetry install
poetry shell

# Run the tests
coverage run ./runtests.py
coverage report

Metadata

Release files for wagtail-jotform 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wagtail-jotform 2.0.0
File Size Uploaded Provenance Actions
wagtail-jotform-2.0.0.tar.gz 9.6 kB Without provenance Details for wagtail-jotform-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wagtail-jotform 2.0.0
File Interpreter ABI Platform Actions
wagtail_jotform-2.0.0-py3-none-any.whl Python 3 none any Details for wagtail_jotform-2.0.0-py3-none-any.whl

Total release size: 20.8 kB

Release files / wagtail-jotform-2.0.0.tar.gz

Download URL wagtail-jotform-2.0.0.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
584cdfa6e5116884476f4cf5d40a7201e4e5aa25a3be2205e295930aa70bbbde
BLAKE2b-256 checksum
How to use checksums
a58e8ce4d1f68c22ef8dea6a77c5e899169b19e89ef7f937c2e32685b14e7482
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Release files / wagtail_jotform-2.0.0-py3-none-any.whl

Download URL wagtail_jotform-2.0.0-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
695ab641e77fcbe768d0431ad14017d2a7d04333726ea3e0725f25d2ac88c57d
BLAKE2b-256 checksum
How to use checksums
ccbc2f88749d85ddb637b2e3bb3b184732ab39b487ebc7efe1ee9aed1d3adde1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.15

Security for wagtail-jotform 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page