Wagtail Jotform
Embedable Jotform forms for Wagtail pages.
Wagtail Jotform works by providing a new page type, EmbeddedFormPage 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",
}
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:
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/
wagtial_jotform/
embed_form_page.html
thank_you.html
Tests
coverage run ./runtest.py
coverage report
Metadata
Release files for wagtail-jotform 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wagtail-jotform-1.0.3.tar.gz | 6.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wagtail_jotform-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.1 kB
Release files / wagtail-jotform-1.0.3.tar.gz
| Download URL | wagtail-jotform-1.0.3.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c977e06b2b5c922f75bd86ab10027010756495e1d44519007278f89506077641
|
|
BLAKE2b-256 checksum How to use checksums |
ebf920a2abbeb7f7f0e9c386e9d8bc43121dea308508dfd31f4270b2d5429334
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / wagtail_jotform-1.0.3-py3-none-any.whl
| Download URL | wagtail_jotform-1.0.3-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
acaceece745c2e574981adf91f7ef62246b8674d166ce51d95ce7bd1fa09f850
|
|
BLAKE2b-256 checksum How to use checksums |
f9c78990f5ec561970989cd1f0eece32f43898b392264f9ec24f2168a492d33b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|