I've added in custom fields for joomla registration, however it's returning them as Invalid Fields?
$requestData = $this->input->post->get('jform', array(), 'array'); echo '<pre>';print_r($requestData);echo '</pre>'; Array ( [name] => testing [username] => testing [password1] => testing [password2] => testing [email1] => [email protected] [email2] => [email protected] [com_fields] => Array ( [country] => Australia [australian-state] => Victoria [are-you-a] => Array (  => Pre-service teacher ) [how-did-you-hear-about-forestlearning] => Array (  => Schools association ) ) ) Invalid field: Country * Invalid field: Australian State Invalid field: Are you a *
These are fields I have added into Users -> Fields, and display fine on the form. Any ideas?
Joomla version 3.9.18