[Zope3-Users] z3c.form: How to hide a button/define action
without a button?
Stephan Richter
srichter at cosmos.phy.tufts.edu
Wed Aug 8 22:08:52 EDT 2007
On Monday 06 August 2007 10:41, Hermann Himmelbauer wrote:
> Is there a way simple way to accomplish this? Perhaps via a "hidden=True"
> attribute in the buttonAndHandler decorator method?
I would override the ``updateActions()`` method in the form as follows:
def updateActions(self):
super(MyForm, self).updateActions()
self.actions['store'].addClass('hidden')
Then have a style:
input.hidden {
display: None;
}
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
More information about the Zope3-users
mailing list