Questions tagged [z3c.form]

z3c.form is an advanced form and widget framework for Zope

z3c.form provides an implementation for HTML forms and widgets. The goal is to provide a simple API but with the ability to easily customize any data or steps.

It uses zope.schema to define the form data model. Then it applies its own form specific data extraction (HTTP request processing), field, widget and form button logic on the top of this.

80 questions
7
votes
3 answers

Using collective.z3cform.datagridfield with Dexterity

I'm somewhat of a newbie to Plone and I'm attempting to use DataGridField with Dexterity. The goal is to use Plone 4.1 to publish the results of a usability study on our intranet. I've created a custom document type (called an Interaction) and I…
Andrew Heckford
  • 507
  • 3
  • 12
7
votes
1 answer

How to add a css class to a z3c.form button

I want to add the css class allowMultiSubmit to a zrc.form button to avoid multi-submit alert. The button is defined like this: from z3c.form import form from plone.app.z3cform.layout import wrap_form class MyForm(form.Form): ... …
Giacomo Spettoli
  • 4,476
  • 1
  • 16
  • 24
7
votes
1 answer

How can I change fieldsets order?

I have a form schema which inherits from another form schema. Both have fieldsets. However, the fieldsets are put in the order they are created. So the fieldset described in the last schema will be the last one. I would like it to be the first. Is…
Gagaro
  • 752
  • 7
  • 17
5
votes
2 answers

How to modify a z3c form field in updateWidgets?

I am trying to dynamically update a form field based on a variable that is included in a HTTP get variable. Specifically www.site.com/form?id=name. I want to pull the 'id' field from the url and automatically populate the memberID field of the…
Matthew McNaughton
  • 239
  • 1
  • 4
  • 16
5
votes
7 answers

Can I use z3c.form on Plone portlets instead of zope.formlib?

What modifications do I need to make considering I have a vanilla ZopeSkel plone3_portlet formlib generated package? Ie: From which classes should I inherit? Which hooks must I provide? Can I use it all the way down including five.grok and…
Davi Lima
  • 800
  • 1
  • 6
  • 20
5
votes
2 answers

How to hide a fieldset (tab) in Plone add/edit form

I have some code in dexterity content type, as below: form.fieldset( 'transitionsLog', label=_(u"Transitions Log"), fields=['t_log'] ) form.mode(t_log='hidden') t_log = schema.TextLine( title=_(u'Transitions log'), ) In add/edit…
Andy
  • 213
  • 1
  • 9
5
votes
1 answer

Plone 4.3 - How to build a Form package using Zc3.form without Grok?

I am trying to build a form package for a Plone website. I am currently working with Plone 4.3. Before I was using Dexterity with five.grok and grok libraries. But after reading the Plone 4.3 migration and five.grok dependency section of this…
Herr Josua
  • 453
  • 7
  • 19
4
votes
2 answers

How do I make a boolean field required in a z3c.form?

I'm using z3c.form to create a form in Plone 4.1.4. I need a boolean field which is required: the user must tick the box. (In my case, the user must agree to the terms and conditions.) Using required=True for the field doesn't work: I can submit the…
Mark van Lent
  • 12,641
  • 4
  • 30
  • 52
4
votes
2 answers

Immediate login after successful registration on a plone site

I have a custom registration BrowserView where you have to extend some userdata (z3c.form with some fields including password). after successful saving these data i want the user to be logged in automaticaly and redirected to an other page in the…
petschki
  • 111
  • 8
4
votes
2 answers

Cannot update zope.schema in Plone

Very new to setting up Plone 4 and trying to integrate Solgema.fullcalendar but when running buildout I get an error saying it needs zope.schema 3.6.0 and I have 3.5.4. I cannot for the life of me work out how to update it. I assume I am missing…
Shufty
  • 41
  • 1
4
votes
2 answers

How to use annotations with z3c.form's DictionaryField

There is documentation on using Python dict with z3c.form (loading & storing form data). However, the z3c.form datamanager used for dicts is not registered for other types or interfaces (see reference), whereas annotations typically use something…
Petri
  • 4,796
  • 2
  • 22
  • 31
4
votes
1 answer

Move invariant validation error message on a field in Plone

I'm using Plone with dexterity and I'm validating 2 related fields using the invariant decorator. Everything works but... I'd like to move the generic error message on one specific field. How can I do this? I've found a three years old suggestion by…
parruc
  • 43
  • 1
  • 3
4
votes
1 answer

Dynamic Source for Plone dexterity RelationList

I have a Plone (4.2) form that is grokked. I want to have a dynamic source for a specific field. The relevant part of the schema: from plone.directives import form from z3c.relationfield.schema import RelationList, RelationChoice from five import…
moestly
  • 1,681
  • 15
  • 19
4
votes
1 answer

z3c.form : add a css class to a widget

I'm writing a form with z3c.form and I'd like to add a css class to a widget. So I'm trying to define an upadateWidgets method to add the css class, but I've got this error on super() : 2012-08-02 16:17:22 ERROR Zope.SiteErrorLog…
Jihaisse
  • 977
  • 5
  • 24
3
votes
1 answer

Extend Plone-Controlpanel Form

Is it possible to extend the Controlpanel-View with each addon? For Example ca.db.core -> Makes basic fieldset/tab for DB Connection Settings ca.db.person -> If installed, Adds to the "core" settings a new fieldset/tab for Person specific…
user966660
  • 634
  • 1
  • 8
  • 20
1
2 3 4 5 6