User tests: Successful: Unsuccessful:
The pull fix Showon feature for a fields in the subform field, #11548 .
Also here is the perfomance optimisation.
Perfomance of showon feature in global configuration:
before 134ms
Create subform field (example in module Custom):
<field name="items" type="subform" formsource="modules/mod_custom/test.xml"
multiple="true" label="Subform Field" />
Create a form (modules/mod_custom/test.xml
) for the subform field, that contain showon
feature:
<?xml version="1.0" encoding="UTF-8"?>
<form>
<field name="type" type="list" default="0" label="Type" >
<option value="0">Small</option>
<option value="1">Medium</option>
<option value="2">Large</option>
</field>
<field name="something" type="text"
label="Show when Type=Large" showon="type:2" />
</form>
or even use XML from #8524 (that even better for test, but without the radio button with "btn-group-yesno" as it still broken).
And make sure that showone
feature works.
none
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Category | ⇒ | JavaScript |
can't we drop jQuery here and use vannila js?
it can be complicated here, for now I would leave it as it is
i think this needs to go to 3.7.x branch
it is bugfix from some point of view
I leave it for maintainers to decide
styling of the radio button with "btn-group-yesno" it another issue, not related to showon
ignore it here
Ah I see. Hopefully this fix will be incorporated in the next 3.6.4
I have tested this item
@zero-24 Done! Thanks
I have tested this item
works as described
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-10-23 15:33:22 |
Closed_By | ⇒ | zero-24 |
Thanks merged
Labels |
Removed:
?
|
@Fedik i think this needs to go to 3.7.x branch.
Also, since 3.7.x already accepts js polyfills, can't we drop jQuery here and use vannila js ?
i mean IIRC jQuery is only used in cms.js for this showon.
But also i think that can be another PR, since this intend to fix an issue too.