View Full Version : [CLOSED] clientside setValue('') on TextField with AllowBlank, not invalidating form after delay

Aug 15, 2013, 12:42 PM
I have a captcha control that contains a text field with an allowblank = false. After a period of time (expires), javascript client code sets this intput textfield.setValue(''). I expect this update to blank to invalidate the form again. It does not. What else do I need to call to invoke clientvalidation of the parent form?

Aug 15, 2013, 2:15 PM
Hi @michaeld,

I cannot reproduce it this way. Please provide your test case.


<%@ Page Language="C#" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html>
<head runat="server">
<title>Ext.NET v2 Example</title>
<form runat="server">
<ext:ResourceManager runat="server" />

<ext:FormPanel runat="server">
Text="Initial text"
AllowBlank="false" />
<ValidityChange Handler="console.log(valid);" />

<ext:Button runat="server" Text="setValue('')" Handler="App.TextField1.setValue('');" />

Aug 28, 2013, 11:32 AM
I will return to this when I have a chance. Sorry. This was a minor issue so until some of our majors are closed, I dont have the time to swing back around, as yet.

Perhaps I can even give up some of the code so other users can use it since I've seen requests for a captcha implementation in other threads. Mine is based on a publicly-available implementation for the image, but I wrapped it with extjs as a usercontrol. It would be even better if it could be reimagined as a proper extnet control. Until then, a day at a time.