NetTalk Central

Author Topic: Update field/variable on lose focus?  (Read 21 times)

JohanR

  • Sr. Member
  • ****
  • Posts: 418
    • View Profile
    • Email
Update field/variable on lose focus?
« on: Today at 06:48:23 AM »
Hi,

I have a mem form with one entry field and a button.

Is there a way to make sure the entry field fires the server side code or updates the session value if it loses focus.
Tabbing away from the field is fine, but typing a new value and clicking on the button does not everytime.

The button on click opens a new page/url

thanks

Johan




rjolda

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Re: Update field/variable on lose focus?
« Reply #1 on: Today at 10:33:27 AM »
HI Johann,
I have seen the same issue.  In those cases I put a button on the form that says something like 'Press to Validate your entry'.  That way, they are told to do something. SO, if they complain that "they put in a value and it didn't work" then you can ask them if they pressed the "Validate button" - and it becomes your chance to educate them!
I am not sure if there is a $Script command that you can trigger before the form is closed but then it may not have the value they entered because they did not acknowledge it with a Tab or Enter.
Ron