[TYPO3-templavoila] Re: Conditional fields in a templavoila fce
Simon Browning
simon at stwdesign.com
Fri Jun 26 16:55:24 CEST 2015
If anyone else is looking for this, I received a response from Ron @ Busy Noggin:
You can do this. I don't have the code handy, but in a flexform. An example is below.
<externalLocalVideo>
<TCEforms>
<label>LLL:EXT:bn_contentelements/bnVideoMP4/locallang.xml:flexform.bnVideoMP4.externalLocalVideo.label</label>
<config>
<type>select</type>
<items type="array">
<numIndex index="0" type="array">
<numIndex index="0">LLL:EXT:bn_contentelements/bnVideoMP4/locallang.xml:flexform.bnVideoMP4.externalLocalVideo.default</numIndex>
<numIndex index="1">0</numIndex>
</numIndex>
<numIndex index="1" type="array">
<numIndex index="0">LLL:EXT:bn_contentelements/bnVideoMP4/locallang.xml:flexform.bnVideoMP4.externalLocalVideo.local</numIndex>
<numIndex index="1">1</numIndex>
</numIndex>
<numIndex index="2" type="array">
<numIndex index="0">LLL:EXT:bn_contentelements/bnVideoMP4/locallang.xml:flexform.bnVideoMP4.externalLocalVideo.external</numIndex>
<numIndex index="1">2</numIndex>
</numIndex>
</items>
</config>
<default>0</default>
<onChange>reload</onChange>
</TCEforms>
</externalLocalVideo>
<externalFile>
<TCEforms type="array">
<label>LLL:EXT:bn_contentelements/bnVideoMP4/locallang.xml:flexform.bnVideoMP4.externalFile</label>
<config>
<type>input</type>
<size>55</size>
</config>
<displayCond>FIELD:externalLocalVideo:=:2</displayCond>
</TCEforms>
</externalFile>
More information about the TYPO3-project-templavoila
mailing list