Skip to main content

Introduction

This product adds a z3c.form widget (called an Addable Choice Widget) that provides a text input in which the user can enter a new value, but also a dropdown in which previously added values are shown.

The user therefore has the choice to use a value previously given, or to give a new value.

When this widget is used for the first time, the dropdown will of course be empty, as there won’t be any previously added values.

How to use:

from plone.directives import form
from collective.z3cform.addablechoice.widget import AddableChoiceFieldWidget


class IMyType(form.Schema):
    """ """
    product_name = schema.TextLine(
        title=_(u'label_product_name', default=u'Product Name'),
    )
    form.widget(product_name=AddableChoiceFieldWidget)

Changelog

0.6 (2013-03-18)

  • Fixed RST rendering errors. [jcbrand]

0.5 (2013-03-18)

  • Fail gracefully when there is no index or now values to choose from. [jcbrand]

0.4 (2012-08-02)

  • Explicitly check if request value is list/tuple. [jcbrand]

0.3 (2012-03-22)

  • Edit MANIFEST.in to include profiles dir. [jcbrand]

0.2 (2012-03-21)

  • Add MANIFEST.in to explicitly add docs dir. [jcbrand]

0.1 (2012-03-21)

  • Created [jbeyers]

  • Initial release [jcbrand]

Metadata

Release files for collective.z3cform.addablechoice 0.6

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

Source distribution (sdist)

Source distribution for collective.z3cform.addablechoice 0.6
File Size Uploaded Provenance
collective.z3cform.addablechoice-0.6.zip 14.5 kB Without provenance Details

Release files / collective.z3cform.addablechoice-0.6.zip

Download URL collective.z3cform.addablechoice-0.6.zip
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1d0ea523383d7ef434c2dd04011f2f76f37fe96d8a218365666d1c4e5b8ecb2f
BLAKE2b-256 checksum
How to use checksums
26b4dd4cf8526a40bd2ca748a55f214384ce24aae08abf92fa7638c9a54362bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for collective.z3cform.addablechoice 0.6

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