Hi Christian,<div>I can see you are using Zope2/Five/Plone so I&#39;m not sure how well my answer applies, but I&#39;ll answer anyway :)</div><div>I got a similar form working just fine in Zope3. It could be that you are using a named template implementation and you forgot to display the view/error_views
</div><div><br class="webkit-block-placeholder"></div><div>If so, you need to have something like this in the page template to actually display the error..</div><div><br class="webkit-block-placeholder"></div><div><div><div>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;div class=&quot;form-status&quot; tal:condition=&quot;view/status&quot;&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;div class=&quot;summary&quot; tal:content=&quot;view/status&quot;&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Form status summary
</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/div&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;ul class=&quot;errors&quot; tal:condition=&quot;view/errors&quot;&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li tal:repeat=&quot;error view/error_views&quot;&gt;</div><div>
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;span tal:replace=&quot;structure error&quot;&gt;Error Type&lt;/span&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/li&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/ul&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&lt;/div&gt;</div><div><br>&nbsp;</div><div>
HTH</div><div>Jesper</div></div></div><div><br><br><div><span class="gmail_quote">On 11/21/07, <b class="gmail_sendername">Christian Klinger</b> &lt;<a href="mailto:cklinger@novareto.de">cklinger@novareto.de</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br><br>i try to make a formlib action with an validator.<br><br>My environment is<br><br>Zope 2.10.4
<br>Five 1.4.4<br>plone.app.form branch 2.5<br><br>This is my method:<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp; def validate_change_passwd(self, action, data):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; errors = self.validate(action, data)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # test password<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from 
zope.app.form.interfaces import WidgetInputError<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if not errors:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if data[&#39;passwort&#39;] != data[&#39;confirm&#39;]:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; errors = WidgetInputError(field_name=&#39;passwort&#39;,
<br>widget_title=_(u&#39;Passwort&#39;), errors=_(u&#39;Foo&#39;))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return errors<br><br>&nbsp;&nbsp;&nbsp;&nbsp; @form.action(_(u&#39;Speichern&#39;), validator=validate_change_passwd)<br>&nbsp;&nbsp;&nbsp;&nbsp; def action_resutls(self, action, data):
<br><br><br><br>What do i have to return to display a error message on my form?<br><br>I try everything but i donīt get it to work<br><br>maybe someone has an tip for me<br><br>Christian<br><br>_______________________________________________
<br>Zope3-users mailing list<br><a href="mailto:Zope3-users@zope.org">Zope3-users@zope.org</a><br><a href="http://mail.zope.org/mailman/listinfo/zope3-users">http://mail.zope.org/mailman/listinfo/zope3-users</a><br></blockquote>
</div><br>&nbsp;</div>