Field validation and focus repositioning

Very old question but seems not yet solved.
Validating a field thru lookup or ajax ( onChange ) seems ok and sc_error_message for notify the user that the input is not correct is working well BUT…
It would be nice to have the possibility to bring the focus back to the field that contains an invalid value instead of going to the next field as it happens in SC.
The macro sc_set_focus (‘field’) does not work and any attempt to bring the focus back to the field using JavaScript gives no results.
Has anyone found an applicable solution?

Thanks

Ciao Giorgio,

for what I saw, sc_set_focus macro cannot be called on any OnValidate events, however, calling a javascript funcion to set focus, I saw it works, so I see the Error Message and the focus in on the field that I want, BUT, when you click “CLOSE” on the button to close the message windows, the focus is lost.

Hi Vincenzo
This is exactly what happens. Same experience.

Opened a support ticket… and starting and endless story as usual… :roll_eyes: