On Tue, Jan 14, 2003 at 06:06:58PM -0800, Michael Watkins wrote: > From its docstring I quote: > > "It's a powerful feature but it can be hard to understand what's going on" > > You can say that again. It's a powerful feature but it can be hard to understand what's going on. :-) > I'm hoping to use an OptionSelectWidget to change a form to reload and > reassign title, description to language specific values (being returned > from a zodb). > > The behaviour I am experiencing is that when an option is selected from the > option_select widget, the form reloads (if I have a submit button added > elsewhere) and displays the original values assigned to the string and text > widgets. How are you reassigning the values? The main trick to understanding OptionSelectWidget is to realize that widgets only use the supplied value when the form is initially rendered. If the form is submitted then the values for widgets come from the request (if there is a value for that widget in the request). Look at HiddenWidget.set_current_value() for an example of how to set the value and override what is in the request. It would be nice if there was method that worked on all widgets. Maybe we could add a "force" keyword to set_value. In any case, OptionSelectWidget is tricky. Neil