I'm having trouble with AJAX Code Validation on a normal Checkbox (Multiple) field. I have 5 options, and I want users to be able to possibly select multiple options EXCEPT a specific combo of two (example: options a, b, c, d, f. They can select any except b and c together.) However, I can't get Code Validation with AJAX to work. All profile edits are done via profile view through AJAX fields. Edit Profile only displays the basic username, email, and name. For the sake of testing, I have set the PHP for Code Validation to return false; to force an error. However, when editing the AJAX field, this is thrown in the browser Dev Console as I change check box selections in AJAX editing:
Code:
jquery.cbvalidate.min.js?v=97c6c7d74dea204d:1 Uncaught TypeError: Cannot read property 'valid' of null
at Object.<anonymous> (jquery.cbvalidate.min.js?v=97c6c7d74dea204d:1)
at u (jquery-2.2.4.min.js?v=97c6c7d74dea204d:1)
at Object.fireWith [as resolveWith] (jquery-2.2.4.min.js?v=97c6c7d74dea204d:1)
at u (jquery-2.2.4.min.js?v=97c6c7d74dea204d:1)
at XMLHttpRequest.<anonymous> (jquery-2.2.4.min.js?v=97c6c7d74dea204d:1)
Community Builder 2.4.2
CB Code Field 2.0.0+build.2019.03.21.15.21.42.54835dad0
PHP Version 7.1.29
Joomla! Version Joomla! 3.9.5 Stable [ Amani ] 9-April-2019 15:00 GMT
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36