1.) Create subform
2.) My code in subform:
<field name="multiple_media" type="radio" default="no" label="Is there more than 1 image or video in this group?" description="Toggle for additional figure content." class="btn-group">
<option value="yes">Yes</option>
<option value="no">No</option>
</field>
3.) Add field(s) with showon. My code is:
<field name="media-image" type="media" showon="media_type:image" label="Image" directory="" preview="true" preview_height="150" />
Fields with showon should show up immediately when option is chosen. It only shows if I save the article after the subform has been created and can be toggled on and off once it is saved.
Fields with showon do not display until after the article is saved.
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-01-03 22:02:49 |
Closed_By | ⇒ | joomla-cms-bot |
Closed_By | joomla-cms-bot | ⇒ | Quy |
Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/23430
It seems the issue is coming from an issue in the custom fields I'm loading. This can be closed.