[TYPO3] sr_feuser_register & Checkbox Validation

Ralph Brugger news.netfielders.de at public.linkpool.de
Tue Mar 21 17:27:02 CET 2006


Hi,

I've extended the sr_feuser_register for some new fields.

I wrote an Extension with the extension kickstarter to get those new
fields in the fe_user table.

The view of the register form seems to be OK.

On this form I have a CheckBox (tx_bobregister_agb) which must be
checked to get that form posted.

I've searched for how to evaluate the state of a CheckBox but can't find
 the solution.

This should be something like:

plugin.tx_srfeuserregister_pi1.create.evalValues.tx_bobregister_agb = ?
plugin.tx_srfeuserregister_pi1.create.evalValues.tx_bobregister_agb = 1
plugin.tx_srfeuserregister_pi1.create.evalValues.tx_bobregister_agb = >0


What's the syntax ro check the state of a CheckBox?

Big THX,

Ralph

	<!-- ###SUB_INCLUDED_FIELD_tx_bobregister_agb### -->
	<dt>
		<label
for="tx-srfeuserregister-pi1-tx_bobregister_agb">###LABEL_TX_BOBREGISTER_AGB###
###REQUIRED_TX_BOBREGISTER_AGB###</label>
	</dt>
	<dd>
		<!-- ###SUB_REQUIRED_FIELD_tx_bobregister_agb### -->
		<p
class="tx-srfeuserregister-pi1-error">###MISSING_TX_BOBREGISTER_AGB###</p>
		<!-- ###SUB_REQUIRED_FIELD_tx_bobregister_agb### -->
		<input id="tx-srfeuserregister-pi1-tx_bobregister_agb" type="checkbox"
name="FE[fe_users][tx_bobregister_agb]" value="1"
class="tx-srfeuserregister-pi1-checkbox" />
	</dd>
	<!-- ###SUB_INCLUDED_FIELD_tx_bobregister_agb### -->



More information about the TYPO3-english mailing list