Embed Jotform forms in wagtail.
Project description
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.
JOTFORM_API_KEY = 'somekey'
JOTFORM_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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for wagtail_jotform-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d36db44c07d8cf03021d150f24db8c8c5a5aa581b4fc948e00b85eb843cbaaae |
|
MD5 | 82c88b105776933a3577fe3a900a6686 |
|
BLAKE2b-256 | 5ba876cdc48793aa40e910a1058e9c716cb87459ffa101ae031332c21ddff8cd |