New answers tagged

2 votes
Accepted

Get the form fields as defined in the form xml file

There is Joomla\CMS\Form\Form::getFieldset() method for returning an array of fields belonging to a fieldset as Joomla\CMS\Form\FormField objects. $fieldNames = []; foreach ($form->getFieldset('...
Sharky's user avatar
  • 10.8k
0 votes

Get the form fields as defined in the form xml file

After further reading of the joomla documentation, unless I've missed something, there isn't a ready made function to get the field names as defined in a xml form field file. There is a [getXml][1] ...
James Wadsworth's user avatar

Top 50 recent answers are included