[Typo3-dev] Default value for flexform

Ole Tange ot at fs.dk
Fri Jul 2 13:06:38 CEST 2004


I am trying to use FlexForms to setup a default value for a checkbox
input field. The 'show date' defaults to not-checked but should
default to checked. I have tried:

  <default>1</default>
  <default>on</default>
  <default>checked</default>

None of these seems to work.

<field_showdate>
 <tx_templavoila>
  <title>Vis dato</title>
 </tx_templavoila>
 <TCEforms>
  <config>
   <type>check</type>
  </config>
  <default>1</default>
  <label>Show date</label>
 </TCEforms>
 <type>no_map</type>
</field_showdate>

I have searched through TYPO3 Core APIs and FTB - none of these
describe how to use default values.

How do I make the checkbox default to 'checked'.


/Ole




More information about the TYPO3-dev mailing list