Out of the box

You can use the package straight out of the box by making use of the two in-built Form page types. See the limitations of this approach below.

EmailFormPage

This Page type inherits from Wagtails AbstractEmailForm page type.

Example usage:

    from wagtail.core.models import Page        
    class HomePage(Page):
        subpage_types = [
            'wagtail_advanced_form_builder.EmailFormPage',
        ]

The EmailFormPage inherits the to_address, from_address, and subject fields and retains the default underlying AbstractEmailForm email sending functionality. Please refer to the Wagtail FormBuilder documentation for more information.

FormPage

This Page type inherits from Wagtails AbstractForm page type.

Example usage:

    from wagtail.core.models import Page                
    class HomePage(Page):
        subpage_types = [
            'wagtail_advanced_form_builder.FormPage',
        ]

Limitations

The default functionality may well suffice if the following is true:

  • The only content you want on the page is the page title and the form field content. i.e. you want this page to act solely as a form container page.
  • You're not adding additional functionality into the default Wagtail Promote or Settings tabs on the page in the CMS.