0

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

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

<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>

4

1 回答 1

0

您可以使用弹性表单中的maxitemsminiitems,如下面的弹性表单配置。

<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>
于 2019-08-02T04:42:23.880 回答