我想在弹性形式中设置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>
您可以使用 MaxItems 和 minitems 以flex形式,例如下面的flex表单配置。
<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>