<field name="items" type="subform" formsource="modules/mod_modulex/fields/item.xml" min="1" max="4" multiple="true" layout="joomla.form.field.subform.repeatable-table" groupByFieldset="true" label="Subform Field" description="Subform Field Description" />
<?xml version="1.0" encoding="UTF-8"?>
<form>
<fieldset name="field_items" label="Fields">
<field
name="field_label"
type="text"
label="title"
size="40" />
<field name="subchild_items" type="subform" formsource="modules/mod_modulex/fields/subchild_items.xml" max="20" multiple="true" layout="joomla.form.field.subform.repeatable-table" groupByFieldset="true" label="value" description="Checkbox Items" showon="field_type:4"/>
</fieldset>
</form>
and this is the content of subchild_items.xml
<?xml version="1.0" encoding="UTF-8"?>
<form>
<fieldset name="field_items2" label="Fields">
<field
name="subchild_value"
type="text"
default="0"
label="Value"
/>
</fieldset>
</form>
The subform works properly
It works partially. The subchild subform is displayed, but it's breaking the next fieldset, and every time I added the new item, the subchild subform's field is displayed twice
Joomla 3.6.2
Title |
|
Title |
|
Category | Administration JavaScript | ⇒ | Fields JavaScript |
@Fedik Ah ok ;)
@Fedik, any idea when the multilevel subform code might be available? I'm stuck with the need, and while I probably don't have as much experience with jquery as you, I am happy to help in any way I can. It will probably take me 2-3 weeks to come up with my own solution to use in my own joomla site, and I'd rather devote that to the core project if possible. I'm good with joomla, php, css, etc, and ok with js and such.
Happy to contribute if I can.
Some months ago I tried to fix it for my own project, but did not got any success with multilevel subform.
There need some more coding and changes in the script and in the layout.
I am not sure that it can be fixed soon.
showon = "test: 1" This is just the minimum that can be used in multiple = "true", that everything was beautiful.
showon="test:1" Это как раз тот минимум , который можно было использовать в multiple="true" , что бы все было красиво.
Было бы неплохо сделать этот тип поля , что бы все работало. Модули стали бы намного ярче и удобней в исполбзовании для конечного пользователя джумлы
@Fedik Is there a indication when this is going to be fixed/implemented. Because as of now we can't include any subform from other extensions that have their own subforms.
multiple=true / multiple=false both give the same results in both cases it does not save any values. See this ticket for a bit more info:#12838
Is there a indication when this is going to be fixed/implemented
no idea, this feature even not planned before.
some day, maybe
the topic already opened, need to wait for someone who know how and a have time to fix it
Please remember that everyone who contributes to Joomla is a volunteer
@Fedik Ah oke. As long as it is mentioned it can't be forgotten. As I think it would be nice to have.
@brianteeman I know that and because of them we get awesome features!
@webchun are com_fields a Solution?
Status | New | ⇒ | Information Required |
@franz-wohlkoenig nope
Status | Information Required | ⇒ | Needs Review |
thanks @Fedik, set Status on "Needs Review".
Status | Needs Review | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-09-05 15:34:09 |
Closed_By | ⇒ | franz-wohlkoenig |
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/11551
closed as having Pull Request #17552
Thanks for Hint, @laoneo
Multi level subform in?
multiple=true
mode does not supported for now (due some limitation).However in single (
multiple=false
) mode should work, in theory, but I not tried