Questions tagged [subform]

Sub Form Field function is introduced in Joomla! 3.6. This function allows developer to nest XML forms inside each other or reuse existing forms inside the current form.

Filter by
Sorted by
Tagged with
0
votes
1answer
59 views

Straight forward code example to save and retrieve the dara for a Subform?

I hope that I may ask this, but is there a straight forward code example for a subform to save the data and to retrieve the data. What I have now is written an save function in controller/model with ...
0
votes
2answers
54 views

Ordering subform data

Wondering if anybody has ever come up with a solution to this problem; my research tells me not. A bit convoluted explanation but hopefully you can understand... I have a component which has both ...
0
votes
0answers
16 views

Is having too many subform will affect website performance?

I'm creating a module that has 5 subforms (for theming options purpose), and each subform has about 10 fields. So far I don't see any significant performance issue on my website (except the module's ...
1
vote
0answers
27 views

Multiple Subform field in module - add multiple items at once

I have a mutliple subform field with radio buttons. All other fields load by showon of the related parent radio select. If there was added more than one item without saving successively, the radio ...
2
votes
1answer
157 views

How to use Subform in nested Subforms

I want to use Showon in a nested XML file and I want to reference the original XML file's field name. I read that this is not possible in Joomla! Subforms because if I were to create the same ...
0
votes
1answer
93 views

Own field type in subform, using with content plugin

for curiosity: I'm using this method to add fields to the standard articles: https://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin/de I have to use this, since the fields-...
1
vote
2answers
131 views

How display values from subform in front end?

I created a simple component with a subform that stores data in a database. Now I need to display this data on the front page. The data is displayed as is from db {"comment0":{"comment":"one"},"...
2
votes
1answer
222 views

Javascript to update input checkbox in a Joomla subform

I have a repeatable subform, that has a number of checkboxes that are effected by the selections made in a list field that is also part of the subform. I added a onchange function the the list field ...
2
votes
1answer
906 views

How do I display the values from a subform

I have a sub form in my XML, which works fine in the back end, but I'm not sure of the best way to get the data out of the subform and display it. Here's part of my original XML <field ...
1
vote
1answer
503 views

Subform inside modal

I am using subform form field type inside my plugin parameters (I am reusing a form in several places of my plugin parameters, with success). What I really need to manage is to use each subform ...
3
votes
2answers
772 views

Subform multiple data not saving

I'm trying to use the Joomla subform field with multiple="true" on (instead of using the old modal repeatable method). My problem is that the data is not saving to the database. I have read multiple ...
6
votes
2answers
2k views

How to use a custom layout with JForm subform fields?

I want to reuse some forms in my component. The subform field does the job. However, I need to remove some fields and/or field groups when displaying the subform. I tried to use the JForm methods ...
2
votes
1answer
520 views

Joomla 3.6 nested subforms not saving

I am trying to use the new subform feature to implement nested forms. This greatly increases the readability for developers and I thought it was already possible to do but after testing I am not so ...
2
votes
1answer
843 views

use Joomla Subform field values in custom field from same module

I have the basic xml file where in I call subforms into two tabs. Called Tab 1 and Tab 2. The content of this file is below. mod_something.xml <fieldset name="tab1"> <field ...
0
votes
1answer
149 views

Sub Form Field Frontend Editing Bug?

I have been playing around with the new Subform field. But it seems to be buggy in front end editing. If I delete or move an item and click save, one of the items will be duplicated and no items ...
5
votes
1answer
260 views

Joomla 3.6 How to migrate data from repeatable to subform

The new field type subform does not retrieve old data repeatable, even fields have the same names. I created many posts with repeatable. The data are stored in extra fields of com_conent. attribs ...
1
vote
0answers
700 views

Why doesn't my subform field data get saved?

I've been trying to debug this all day. I can't figure it out. My subform field: <field name="tricks" type="subform" formsource="administrator/components/com_test/models/forms/bagtrick.xml" ...
9
votes
4answers
2k views

How to get value from Sub Form

I want to embed a simple slideshow to my template, and I want to use subform to make easier to change the image. This is the code I use to call the child xml file <field name="slideshow_items" ...