NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Gordon Holfelder on September 03, 2010, 10:08:31 AM

Title: Extra Click Needed on Form
Post by: Gordon Holfelder on September 03, 2010, 10:08:31 AM
Hello-

I have a login form modelled after the login form in the Web3 sample. In my login form, if an error has been displayed (i.e. login failed), I enter a new password (do not tab out of field) and click the login button. The error message clears, but a second click on the button is required for the form to be accepted. Tabbing out of the field allows the button click to work properly.

I've looked at Web31 (which doesn't have the problem) and as far as I can tell, I've set the various field and form options the same. Is there a particular place I need to look to turn off this behavior.

Thanks!
Gordon
Title: Re: Extra Click Needed on Form
Post by: ccordes on September 04, 2010, 08:33:51 PM
I have the same problem on all forms with an error message. Click Save once to clear the message and again to save the record. Sure would like to know what I'm doing wrong.
Sorry, Gordon this isn't much help for you.
Title: Re: Extra Click Needed on Form
Post by: Niels Larsen on September 06, 2010, 12:06:24 AM
Sorry - same problem... ???
Title: Re: Extra Click Needed on Form
Post by: Rene Simons on September 08, 2010, 02:55:10 AM
Hi,

Maybe you could check the status of the validation of those fields.
When validation is Default and the default is set to immediately, the value of the field will be sent to the server after the cursor has left the field (or a button is clicked).
Set the validation of these fields to not default and/or change the default to not immediately (I don't know the other setting by hart) and try again.

Rene
Title: Re: Extra Click Needed on Form
Post by: Gordon Holfelder on September 08, 2010, 07:31:34 AM
Hello Rene-

Thats the ticket! I went to the procedure -> Actions -> NetWebForm Settings -> Validation (tab) -> Set "Immediate Validation" to No.

You can set the individual fields, but I'm assuming that this is when you want to validate the fields as the user tabs through the fields. This is actually not what I normaly would want.

Thanks again,
Gordon
Title: Re: Extra Click Needed on Form
Post by: Alan Cochran on September 09, 2010, 11:14:54 AM
Rene & Gordon,

Thanks... I was having the same problem as well.  Never thought about changing the Immediate Validation from Default to No.

Alan