Create a parameter XML for a template add the sub form field code to the XML as described in the documentation
https://docs.joomla.org/Subform_form_field_type
I have tested with the example code and my code and neither work. Here is my code:
style1.xml
basecolors_subform.xml
Base Color 1 Base Color 2 Base Color 3 Base Color 4 Base Color 5 Base Color 6 Body Text H1 H2 H3 H4 H5 H6 Global Link Link Hover Link ActiveAfter selecting the Parameter values and saving the subform field parameters should be saved
None of the parameters save
Joomla 3.6, Joomla 3.7
Labels |
Added:
?
|
Category | ⇒ | Fields |
@hieblmedia Custom fields don't support subforms. So that is quite expected to fail. But I think the OP refers to using subforms in the template XML, which is a different thing.
The main issue that needs to be resolved is using JS in the sub forms such as color picker etc.
Closing as we have a PR
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-05-11 18:46:33 |
Closed_By | ⇒ | Bakual |
Confirm this.
There are two ways to implement a subform.
Direct manipulation to type=subform on 'onCustomFieldsPrepareDom'. This does create the count of subform fields as duplicate field_id/item_id entries in #__fields_values table with values of one entry.
Or with an custom field type in /fields/ sub-directory. This also does not work. No values are saved.