假设我有一个关系字段,我想要存储这个关系,以及,一个被选择的关系的属性name到一个隐藏的输入中。
name
示例:在一个中继字段中,我选择一个带有name“to”的项目,我想将“to”存储到隐藏的输入info中。
info
我怎么能这么做?
(我需要这个,因为分类.我不能接触亲戚)
发布于 2017-05-13 05:07:56
可以使用字段的dependsOn选项来设置描述的这里值。
dependsOn
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()函数中设置描述这里的值。
fitlerFields()
https://stackoverflow.com/questions/43935641
相似问题