None
@view_config(renderer="templates/form.pt", name="hidden_field")
@demonstrate("Hidden Widget")
def hidden_field(self):
class Schema(colander.Schema):
sneaky = colander.SchemaNode(
colander.Boolean(),
widget=deform.widget.HiddenWidget(),
default=True,
)
schema = Schema()
form = deform.Form(schema, buttons=("submit",))
return self.render_form(form)