Hello,
I'm using T4 BS5 template with Joomla 4.
I have an xml subform that I'm trying to render, the file looks like this:
<?xml version="1.0" encoding="utf-8"?>
<form>
<fieldset addfieldpath="/components/com_lepasscales/forms/fields">
<field name="service" label="COM_LEPASSCALES_SLIPWAY_LBL_SERVICE" type="subform" multiple="true" buttons="add,remove">
<form>
<field name="id" type="hidden" readonly="true" default="0" />
<field name="serviceTypeId" label="COM_LEPASSCALES_SLIPWAY_LBL_SERVICE_TYPE" type="foreignkey" required="true" class="inputbox" input_type="list" table="service_type" key_field="id" value_field="name" default="" />
<field name="latitude" label="COM_LEPASSCALES_SLIPWAY_LBL_LATITUDE" type="text" default="" pattern='^-?(\d{0,10}(\.\d{0,6})?)$' />
<field name="longitude" label="COM_LEPASSCALES_SLIPWAY_LBL_LONGITUDE" type="text" default="" pattern='^-?(\d{0,10}(\.\d{0,6})?)$' />
<field name="map" type="coordinatemap" default="" label="" description="" height="300px" width="500px" />
</form>
</field>
</fieldset>
</form>
On my template I render the field with this :
<?= $this->form->renderField('service') ?>
and it works fine, the result looks like this :
My problem is that when I click the green button to add a row in the subform, nothing happens. Not even a JS error is thrown, so I don't really know where to look to solve the problem.
Thanks for your help !