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
3 votes
1 answer
32 views

Prefill subform with data rows

Im trying to prefill my subform with datarows from the database. newcustomerform.xml <?xml version="1.0" encoding="utf-8"?> <form addfieldprefix="Mydestiny\Component\...
1 vote
0 answers
138 views

render Subform repeatable custom fields joomla4

I have created one subform custom fields in my Joomla 4 article from backend and selected media filed at subform and use this code for load custom fields at joomla article YOUR_JOOMLA_WEBSITE_ROOT/...
0 votes
1 answer
82 views

Layout override for repeatable subform custom field

I am trying to apply custom field override to my article and some of the fields I am trying to access are inside repeatable and non-repeatable subforms. Please how do I access and display subform ...
0 votes
1 answer
217 views

What is the correct PHP to render Subform repeatable custom fields on the front end?

When creating custom layout overrides the PHP code <?php echo $this->item->jcfields[X]->value; ?> Works successfully, but does not function at all when it comes to repeatable subform ...
  • 45
0 votes
1 answer
65 views

Custom form field in subform. How to access parent form fields?

I have created a custom file list form field and the field is used in a repeatable subform. The purpose of this custom form field is to display a list of files in folder based on 'name' field in main ...
1 vote
2 answers
74 views

Create dynamic html markup from values in repeatable field json

In my custom component, I use a repeatable field. Sometimes it is possible that a url_partenaire element is an empty string because it is not mandatory. var_dump($this->item->...
  • 23
1 vote
2 answers
159 views

Access parent field value out of subform

I made a custom field and using it in a subform looking somewhat like this: <config> <fields name="params"> <fieldset name="basic" addfieldpath="/...
  • 341
1 vote
2 answers
207 views

Joomla Subform adding row, the selector event is not fired if I change the value of the select element?

I have a subform which is working perfectly itself. If I add a new row (+), I have add the function as mentioned on joomla subform documentation: jQuery(document).on('subform-row-add', function(event, ...
0 votes
2 answers
223 views

Straight forward code example to save and retrieve the data 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 ...
1 vote
2 answers
134 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 ...
  • 704
1 vote
0 answers
113 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 ...
  • 57
2 votes
1 answer
642 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 ...
  • 1,869
0 votes
1 answer
182 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-...
  • 130
1 vote
2 answers
345 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"},"...
  • 13
2 votes
1 answer
289 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 ...
  • 401
2 votes
1 answer
1k 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,869
3 votes
1 answer
539 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 ...
  • 871
4 votes
2 answers
1k 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 ...
  • 63
6 votes
2 answers
3k 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 ...
  • 418
2 votes
1 answer
567 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
1 answer
1k 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
1 answer
168 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 ...
  • 3,209
5 votes
1 answer
332 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 ...
  • 167
1 vote
0 answers
872 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
4 answers
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" ...
  • 2,388