cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Hermann <christoph.herm...@guschtel.de>
Subject Re: [CFORM] How can I remove a previous validation error from a widget?
Date Thu, 04 Aug 2005 09:05:00 GMT
Dan Ochs schrieb:

Hello,

> I have tried removing the validation error by doing this, and the
> validation error is removed, but the form does not submit and I get
> the page back again, but without any errors. (So I have to click
> submit twice after the error is fixed)
> else{
>    form.lookupWidget("fieldId").setValidationError(null);
> }

In the countryselector example i found this:

// Reset the value (will clear validation error)
event.source.setValue(null);

maybe this helps you (just set the value?)

Christoph

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message