Skip to main content
🐍⚡️Support Python for everyone by grabbing a 30% discount on PyCharm—ALL proceeds go to the Python Software Foundation. Offer ends soon, so grab it today!  GET 30% OFF PYCHARM

Show previous form input values in viewlet for PloneFormGen.

Project description

Introduction

collective.pfg.showrequest shows field labels and values on the next form generated by PloneFormGen.

Currently tested with

  • Plone-4.3

  • Products.PloneFormGen-1.7.8

  • Python-2.7.x

Sometimes, you might need to chain forms to create wizard like forms where you want to show field input results from the previous form. This package serves for this need by simply registering viewlet to plone.app.layout.viewlets.interfaces.IAboveContentBody interface.

How To

Once you have quickinstalled collective.pfg.showrequest, go to the Form Folder (Form2) where you want to show the field results.

There is Show Request button under Actions, so click it. Input field ids from the previous form (Form1) and save it.

  • The order will effect the resulting order.

Copy the field types from the Form1 to the Form2 with default values and overrides empty.

  • To show the field result correctly, you need to have the same field in both Form1 and Form2 for the showing fields.

You will see previous form results above the content body now like it is on thanks page.

Changelog

0.6 (2013-05-06)

  • Moved test packages to extras_require. [taito]

  • Tested with Plone-4.3. [taito]

0.5.1 (2013-03-23)

  • Updated to work with Products.PloneFormGen-1.7.7. [taito]

  • Tested with Plone-4.2.5. [taito]

0.5 (2013-01-06)

  • Tested with Plone-4.2.3 and Products.PloneFormGen-1.7.6. [taito]

  • Added testing integration to Travis CI. [taito]

0.4 (2012-11-14)

  • Tested with Plone-4.2.2 and Products.PloneFormGen-1.7.4. [taito]

0.3 (2012-09-17)

  • Tested with Plone-4.2.1. [taito]

0.2.0 (2011-04-22)

  • Added control on showing field results.

0.1.0 (2011-04-21)

  • Initial release

Installation

If you are using zc.buildout and the plone.recipe.zope2instance recipe to manage your project, you can do this:

  • Add collective.pfg.showrequest to the list of eggs to install, e.g.:

    [buildout]
    ...
    eggs =
        ...
        collective.pfg.showrequest
  • Re-run buildout, e.g. with:

    $ ./bin/buildout

Credits

  • Finnish Association for Nature Conservation (Suomen Luonnonsuojeluliitto) who uses this package in their site: http://www.sll.fi

Supported by

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