When the form loads:
1. The focus is not on the first text entry (First Name) - how do I set the focus and force the keyboard to appear without having the user touch the entry box?
2. When the user has filled in the first name, if he touches the DONE/NEXT button, nothing happens - how do I cause the tab to advance to the next field?
Thanks in advance,
Rusty
I need to be able to create dynamic multi-screen forms with "edit texts", Radio buttons etc.
For example, if i have a question that has 5 answers vs a question with 100 answers from which to choose.
I've implemented it with .bal files, but clients want a smoother flow, so I am experimenting with html to accomplish this.
1. Set the fcus in b4a to the Webview
2. Use Javascript to set the Focus to an Editfield inside the loaded page inside wthe webview (in activity_resume i set focus to webview and then call a javascript to set the focus to a editfield.
3. You need to open the keyboard by yourself using the ime library i think....
Thanks Don,
I just tried your example and I'm not seeing any difference than using just Webview to load the HTML.
It shows beautifully, but when I enter some data in firstname and touch done, nothing happens to advance to lastname.
Am I missing something?
I appreciate your help and the example.
Rusty
UPDATE: I noticed the TAB key on the left of the soft keyboard and touched it, THIS WORKS
Is there a way to use the GO/DONE/NEXT key to advance?
THANKS!
The code just show how you can Focus a editfield in the webview after it has been loaded....
Nothing more.
So, if you add a ime call to open the keyboard to it then you should be able to start with the field-editing right after loading the webview.
It is just a proof of concept; not a full Solution for your problems but it should give you a start