Your override code is correct in principle. The custom fields are missing because the fieldset 'customprofile' does not exist. In fact, Joomla 3.10.12 assigns names like 'fields-1' automatically to custom field groups, depending on the id of field group in the database table _fields_groups.
These debugging lines display the structure of the array with the names of the fieldsets.
This screenshot shows an example of a fieldsets array, containing the custom field group 'My Custom Field Group', known in my test by Joomla 3 as 'fields-2'. The field group has one field, 'Custom Text Field'. The first two standard user fields of the registration form are also shown.
These debugging lines display the structure of the array with the names of the fieldsets.
Code:
<?php $fieldsetsDefault = $this->form->getFieldsets(); ?><?php $debug = print_r($fieldsetsDefault, true); echo '<p>' . $debug . '</p>';?>
Statistics: Posted by toivo — Thu Feb 22, 2024 7:11 am