I just found out that liveValidation still works somehow, because the page submit is blocked if the field is no number with the usual alert message showing.
The thing that is not working as expected is that the red fonted liveValidation message “Must be a number!” is not showing.
Hmm. Are you testing this on a form that already has a phone1 value? This would cause LV to break, because each field must have a unique name. There’s also a PhoneNumber input type, which has nested inputs. Perhaps updating this instead would do the trick?
I tested out your code and discovered the error luckily isn’t with LiveValidation, which as you noted seems to be working and prevents submission, but happens to be a css rule that was added to help fix an issue with overlapping validation messages inside a phone number: input[name*=“phone”] ~ .LV_invalid`
Incidentally, the Form class does have specialized phone number inputs for this case, rather than using addNumber(‘phone’)`. As it so happens, we’ve made some pretty major changes to the form rendering in v18, and this issue appears to no longer exist for the upcoming version.