我想在我的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>
答案 0 :(得分:0)
您可以在flex表单中使用 maxitems 和 minitems ,如下所示。
<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>