Php 十月CMS:触发事件不';行不通

Php 十月CMS:触发事件不';行不通,php,laravel,twig,octobercms,octobercms-backend,Php,Laravel,Twig,Octobercms,Octobercms Backend,在阅读了这篇(和其他…)关于文档的文章()之后,我找不到我这边的问题 我不能让触发事件工作。。。这是我的代码: //亚马尔 fields: gallery: label: Galeria span: full oc.commentPosition: '' prompt: 'Add new item' type: repeater form: fields:

在阅读了这篇(和其他…)关于文档的文章()之后,我找不到我这边的问题

我不能让触发事件工作。。。这是我的代码:

//亚马尔

fields:
    gallery:
        label: Galeria
        span: full
        oc.commentPosition: ''
        prompt: 'Add new item'
        type: repeater
        form:
            fields:
                type:
                    label: 'Select the type of a gallery item'
                    span: full
                    type: galleryplusvideoselect
                galleryplusvideo:
                    label: Gallery
                    span: full
                    oc.commentPosition: ''
                    type: galleryplusvideo
                    hidden: true
                    trigger:
                        action: show
                        field: type
                        condition: value[image]
//galleryplusvideoselect
\u widget.htm
文件

<div data-control="balloon-selector" class="control-balloon-selector">
    <ul>
        <li data-value="image" <?php if($type == "image") echo 'class="active"'; ?>>Image</li>
        <li data-value="video" <?php if($type == "video") echo 'class="active"'; ?>>Video</li>
    </ul>

    <input type="text" onkeyup="
            $(this).trigger('change')" <!-- <--- THIS IS ONLY TO REPRODUCE AN EXAMPLE FROM THE DOCUMENTATION -->
    name="<?=$name ?>" value="<?= $type ?>" />
</div>

    >录像带

摆脱
隐藏:true
。触发器
操作:show
属性将自动隐藏字段,无需双重隐藏。交叉投递