- Last Active
- Preferred Name
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.
Thanks for catching this bug. In this case, it looks like submitting the form multiple times had the potential to erase the custom field data for a user that was not included in the update, so well caught! I've applied a fix in the v18 branch, which you can see here, feel free to apply it back to your codebase:
Yes, Gibbon version 17 requires a minimum of PHP version 7.0, be sure to check the PHP version that your new server is running.
If you have FTP access to your server, you can install older versions without using Softaculous, by following the standard install instructions. It's recommended to run the latest version though, if possible. All Gibbon releases are available through GitHub.
Hope this helps!