[TYPO3-english] sr_feuser_register - multiple checkboxes not remembered

jochem nabuurs jochem at roquin.nl
Thu May 20 10:26:25 CEST 2010


Hi list,

I've created a form with sr_feuser_register extension and added a 
multiple checkbox to it. The checkboxes are shown, and when submitting 
the form, the values are stored in the database. The problem is that the 
values aren't remembered when editing the form after a preview. Very 
annoying, because there are 20 checkboxes that can be checked.

The form code for the checkboxes, from the HTML template:

<!-- ###SUB_INCLUDED_FIELD_tx_roqpremiepakker_brancheothers### -->
   <!-- ###SUB_REQUIRED_FIELD_tx_roqpremiepakker_brancheothers### -->
     <p 
class="tx-srfeuserregister-pi1-error">###MISSING_TX_ROQPREMIEPAKKER_BRANCHEOTHERS###</p>
   <!-- ###SUB_REQUIRED_FIELD_tx_roqpremiepakker_brancheothers### -->
   <div class="csc-mailform-field">
     <label 
for="tx-srfeuserregister-pi1-tx_roqpremiepakker_brancheothers" 
onclick="document.getElementById(this.htmlFor).focus(); return 
false;">###LABEL_TX_ROQPREMIEPAKKER_BRANCHEOTHERS###</label>
     ###TCA_INPUT_tx_roqpremiepakker_brancheothers###
     ###REQUIRED_TX_ROQPREMIEPAKKER_BRANCHEOTHERS###
   </div>
<!-- ###SUB_INCLUDED_FIELD_tx_roqpremiepakker_brancheothers### -->




I've added the following to TS constants :

plugin.tx_srfeuserregister_pi1 {
	formFields = ..., tx_roqpremiepakker_brancheothers, ...
	requiredFields = ..., tx_roqpremiepakker_brancheothers, ...

	parseValues.tx_roqpremiepakker_brancheothers = multiple
}

plugin.tx_srfeuserregister_pi1._LOCAL_LANG.nl {
   ...
   tx_roqpremiepakker_brancheothers = Branches waarin mensen om mij heen 
   actief zijn (meerdere antwoorden mogelijk):
   tooltip_tx_roqpremiepakker_brancheothers = Branche anderen
   missing_tx_roqpremiepakker_brancheothers = Branche anderen is verplicht.
   ...
}

I hope somebody can help.
Thanks in advance.

Greetz,

Jochem Nabuurs


More information about the TYPO3-english mailing list