![]() Its is looked up from the main schema e.g. If the other field is is used without a prefix, Its name can be abbreviated by a leading dot e.g.other_field_name. If the other field is from the same schema, If the other field is in a supplementary schema (i.e. Pass the field name as a key and name of the other field as a value. Specify that a given field should be rendered before another.įields can only be ordered if they are in the same fieldset, Pass the field name as a key and the string ‘input’, ‘display’ or ‘hidden’ as the value. ![]() Set the widget mode for one or more fields. Takes a sequence of field names as parameters. The widget can either be a z3c.form widget instance or a string giving the dotted name to one. Pass the field name as a key and a widget as the value. Or a set of field name/value pairs as keyword arguments.Įach directive can be used zero or more times. The form directives are taking parameters in the form of a list of field names, omitted ( 'additionalInfo' ) additionalInfo = schema. TextLine ( title = u 'Title' ) directives. From toform import directives from plone.supermodel import model from zope import schema class ISampleSchema ( model.
0 Comments
Leave a Reply. |