You can override the setupWidgets() method of your formlib class and write something like this. (assuming that project is your dropdown field and your view is called MyAddingView)

def setUpWidgets(self, ignore_request=False):
super(MyAddingView, self).setUpWidgets(ignore_request=ignore_request)
       self.widgets['project']._messageNoValue = "(no project)"

The thing that bothers me is that once you assign a value it is not possible to set it back to "no value".
Anyone knows how to fix this?


Roy Mathew escribió:
Hi Folks,

Currently, the builtin dropdown widgets show the string '(no value)'
as the empty default. Is it possible to show different text in its

Zope3-users mailing list

Reply via email to