Hi Bruce
Using Accounts Example(31)
I added 'INV:Paid' to INV:Customer field set focus in the UpdateInvoices Netwebform
compiled
Select Operations\Invoices
Change Invoice1
Select to change customer
Select Country South Africa from drop down
select Eco-Times systems as new customer
Focus still goes to Date not Paid checkbox
Attached App and Dct
Hi Vinnie and Markster thanks.
I checked the location of that line in the code from the attached App and it is already in Priority 5000 after End of Validate New Value
If loc:noFocus = false
p_web.SetValue('SelectField',clip(loc:formname) & '.' & p_web.NoColon('INV:Paid'))
End
Moving the line slightly lower to
! Start of "After Validate New Value, After sending replies"
! [Priority 5000]
p_web.SetValue('SelectField',clip(loc:formname) & '.' & p_web.NoColon('INV:Paid'))
! End of "After Validate New Value, After sending replies"
without the noFocus check had no effect, focus still set to Date field