This is an old thread but . . .
The code:
loc:invalid = 'Loc:Login'
p_web.SetValue('retry','LoginForm')
loc:Alert = 'Login Failed. Try Again.'
works fine in the Login example app and is the template (as Bruce said above) for posting an error message, retrying the form and selecting the field on that form to continue with (the field in error).
I now have a Form (not a login Form) in which I check a field - CLI:Name and have the following code if the field is in error:
loc:invalid = 'cli:name'
p_web.SetValue('retry','u2clients')
loc:Alert = 'Enter a valid Business Id'
which looks like the example but though the Alert message appears the cli:name field does not get the focus, the cursor remains in the next field.
Any ideas why this should be?
Thanks
Keith