[Typo3] Extending SRFE with Checkboxes.
Raymond Hayes
openedge1 at gmail.com
Thu Mar 3 00:39:07 CET 2005
Ok
I am trying again, as I am unsure if this is being viewed or
not...even though it is on the list.
I have a template for Front End Registration, I am using SRFE for my
extensions. I have added an area for a selection from checkboxes. I
created my own extension with the checkboxes. The issue is the data
will not add to the backend or my database. The extension I created is
working fine as well.
So the example is as follows.
The Template displays
Choose all that apply.. Answer 1 [] Answer 2 [] Answer 3 [] (etc,
etc...) the [] is a checkbox. (Again this is an example)
The code in the template reads...
<!--###SUB_INCLUDED_FIELD_myfieldname###-->
<tr>
<td><p>###LABEL_MYFIELDNAME### ###REQUIRED_MYFIELDNAME###</p></td>
<td>
<!--###SUB_REQUIRED_FIELD_myfieldname###-->
<p>###GW2B######MISSING_MYFIELDNAME######GW2E###</p>>
<!--###SUB_REQUIRED_FIELD_myfieldname###-->
<p><input type="checkbox" name="FE[fe_users][myfieldname]"
value=1>Answer 1
<input name="FE[fe_users][myfieldname]" value=2 type="checkbox">Answer 2
<input name="FE[fe_users][myfieldname]" value=4
type="checkbox">Answer 3</p>
</td>
</tr>
<!--###SUB_INCLUDED_FIELD_myfieldname###-->
Please notice I have the code for the checkbox in the template several
ways for testing, and all are no good. I also have done
<p>###TCA_INPUT_myfieldname###</p>
Exactly as above (please note, I have also replaced TCA_INPUT with
CHECKBOX, CHECK, CHECKED)....and still nothing.
I have the 2nd and 3rd area's in my Typoscript in the backend (added
the fields, added eval values)...
Again it does not work. I even followed the template example of adding
a checkbox for the DMAIL extension, but this did not work as well.
Any ideas would be greatly appreciated.
Thank you
Raymond Hayes
More information about the TYPO3-english
mailing list