Can I use autotab function on WIX form

Yes, you only need to change the array with your IDs and the maximum values.
I had a typo in my code, I’ve updated it, you can use the updated version to see if it fixed your issue.