首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Flexform maxitems验证

Flexform maxitems验证
EN

Stack Overflow用户
提问于 2019-08-01 22:47:11
回答 1查看 97关注 0票数 0

我想在我的Flexform中设置maxtems和mintems的验证。如何设置?

是否可以定义或我应该使用IRRE?

代码语言:javascript
复制
<T3DataStructure>
<meta>
    <langDisable>1</langDisable>
</meta>
<sheets>
    <main>
        <ROOT>
            <TCEforms>
                <sheetTitle>TEST</sheetTitle>
            </TCEforms>
            <type>array</type>
            <el>
                <settings>
                    <title>Flex</title>
                    <type>array</type>
                    <section>1</section>
                    <el>
                        <modulElement>
                            <type>array</type>
                            <title>Form</title>
                            <el>
                                <text>
                                </text>
                            </el>
                        </modulElement>
                    </el>
                </settings>
            </el>
        </ROOT>
    </main>
</sheets>

EN

回答 1

Stack Overflow用户

发布于 2019-08-02 12:42:24

您可以在flex form中使用maxitemsminitems,如下flex form配置。

代码语言:javascript
复制
<el>
  <myField>
    <TCEforms>
     <label>myField</label>
      <onChange>reload</onChange>
     <config>
      <type>select</type>
      <items type="array">
       <numIndex index="0" type="array">
        <numIndex index="0"></numIndex>
        <numIndex index="1"></numIndex>
       </numIndex>
       <numIndex index="1" type="array">
        <numIndex index="0">My Value 1</numIndex>
        <numIndex index="1">myValue1</numIndex>
        </numIndex>
       <numIndex index="2" type="array">
        <numIndex index="0">My Value 2</numIndex>
        <numIndex index="1">myValue2</numIndex>
       </numIndex>
      </items>
      <minitems>0</minitems>
      <maxitems>1</maxitems>
      <size>1</size>
     </config>
    </TCEforms>
  </myField>
</el>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57311649

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档