[TYPO3] th_mailformplus multipage forms

Sander van Gelderen mail at NOSPsandervangelderen.nl
Sat Feb 24 22:10:41 CET 2007


Hello list,

I am trying to achieve the following functionality:

- form step 1: the form has a dropdown with values 1-10, the dropdown is 
called curscount, it indicates the number of people to be enrolled on a 
course.
- form step 2: depending on the value of t3lib_div::_GP('curscount'), 
the form contains the correct numer of name/adress/email inputs, one for 
each person.


I thought I could do this with subparts in my htmltemplate, but I have 
run into trouble. Is it possible to do this at all?
Here is some of my code:

$formconf = $this->conf['form.'];
$formconf['default.']['email_htmltemplate'] = 
$this->pi_getFFvalue($this->cObj->data['pi_flexform'],'template_file','sDEF');
		$formconf['fieldConf.']['THIS_PAGE.']['defaultValue.']['value'] = 
tslib_pibase::pi_getPageLink($GLOBALS['TSFE']->id);
		
$form = new tx_thmailformplus_pi1;
$form->cObj = $this->cObj;
$formcontent = $form->main ('',$formconf);

At this point when I dump the contents of $formcontent, the markers 
###CONTENT### and ###ITEM### that I intended to use later on have 
disappeared, I had them in my htmltemplate like this:
<!-- ###CONTENT### begin --> etc but after $form->main call only <!-- 
begin --> is left, my markers have been stripped out.


TIA for any help or suggestion,


Sander


More information about the TYPO3-english mailing list