//Get the fieldset named 'personal_info' $fieldset = $form->getFieldsets('personal_info'); //Loop through each field in the fieldset and output the label and input foreach ($fieldset as $field) { echo $field->label . ': ' . $field->input; }
//Get all fieldsets in the form $fieldsets = $form->getFieldsets(); //Loop through each fieldset and output the name of the fieldset foreach ($fieldsets as $fieldset) { echo $fieldset->name . 'This example retrieves all fieldsets in a Joomla form and loops through each fieldset to output the name of the fieldset. Overall, JForm getFieldsets is a useful function in the Joomla Form library for retrieving and manipulating grouped sets of form fields.
'; }