NetTalk Central

Author Topic: set focus to different fields on a WebForm  (Read 2917 times)

hkalmbach

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
    • Email
set focus to different fields on a WebForm
« on: October 12, 2014, 10:53:08 PM »
Hi together,
I have a WebForm, where I fill 3 (adress-) fields by some kind of a lookup. In fact it is not a lookup but also a form with buttons (designed for tablet computers) from which the user is selecting.
To distinguish which field in the original form has to be filled I send a parameter (PosNr) in the URL in both directions.

The filling of the field works well.
The only problem I have is to set the focus in the original form to the correct field after coming back from the selection form. The focus always is in the first field of the form.

I already tried to do it in the following way:

  CASE PosNr
    OF 2
      p_web.SetValue('SelectField',clip(loc:formname) & '.DurchBeginnDatum2')
    OF 3
      p_web.SetValue('SelectField',clip(loc:formname) & '.DurchBeginnDatum3')
  END

But it didn't work.
Does someone know how to do it or where is the correct embbed point for this?

Thanks a lot.

Regards
Heinz

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: set focus to different fields on a WebForm
« Reply #1 on: October 20, 2014, 02:35:33 AM »
looks like you are on the right track, but I suspect the devil is in the details.
Perhaps post a small example of what you are doing so I can take a look.

Remember that HTML is case sensitive.

cheers
Bruce