OctoberCMS |粘贴关系attibute到一个隐藏输入

OctoberCMS |粘贴关系attibute到一个隐藏输入

问题描述:

enter image description hereOctoberCMS |粘贴关系attibute到一个隐藏输入

想象一下,我有一个关系的领域,我想存储关系的属性附加伤害的选择关系到一个隐藏输入的name

示例:进入关联字段我选择了一个项目name“有些酷”,我想将“Something Cool”存储到隐藏的输入info中。

我该怎么做?

(我需要的,因为排序的...我不能访问的关系)enter image description here

您可以使用dependsOn选项字段设置数值描述here

project_id: 
    label: Projecto 
    type: relation 
    nameFrom: name 
sorting_field: 
    type: text 
    dependsOn: project_id 
    cssClass: hidden # this is a helper class from storm.css to set the visibility to hidden 

并将设定值描述为fitlerFields()函数here