title: userFunc in TYPO3 displaying the rendered list but not storing in the DB
body: <p>The TCA field for one of my records is as follows :</p>
  
  <pre><code>'page_id' =&gt; array(
              'exclude' =&gt; 0,
              'label' =&gt; 'LLL:EXT:calendar/Resources/Private/Language/locallang_db.xlf:tx_calendar_domain_model_display.page_id',
              'config' =&gt; array(
                  'type' =&gt; 'user',
                  'userFunc' =&gt; 'EXT:calendar/class.tx_calendars_tca.php:tx_calendars_tca-&gt;someWizard',
              ),
  </code></pre>
  
  <p>The function <code>someWizard</code> looks like this :</p>
  
  <pre><code>    function someWizard($PA, $fObj) {
  
  
          $content='&lt;select&gt;' .
                  '&lt;option value="One" &gt; item 1 &lt;/option&gt;' .
                  '&lt;option value="Two" &gt; item 2 &lt;/option&gt;' .
                  '&lt;option value="Three" &gt; item 55 &lt;/option&gt;' .
                  '&lt;/select&gt;';
  
  
          return $content;
  }
  </code></pre>
  
  <p>The select list renders fine into the backend form, but it does not store anything when saved.It might be that the list is being displayed but the values are not getting set.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I am trying to get all the pages title into a drop-down list, with some conditions and processing. The pseudo code of what i'm thinking to do is something like this.(I still need to do lot of processing to the list)</p>
  
  <pre><code>function someWizard($PA, $fObj) {
  
  
                  $GLOBALS['TYPO3_DB']-&gt;debugOutput = TRUE;
                  $formField='&lt;select&gt;';  
                   $PA['fieldConf']['config']['type'] = 'select';
  
                  try{
                      $where='is_siteroot=1';
                      $res = $GLOBALS['TYPO3_DB']-&gt;exec_SELECTquery('*','pages',$where);
                      while ($row = $GLOBALS['TYPO3_DB']-&gt;sql_fetch_assoc($res)) {
                          $formField.='&lt;option value='.$row['uid'].'&gt;'.$row['title'].'&lt;/option&gt;';
                      }
                  }
  
                  catch(Exception $e){
                      echo $e;
                  }
  
  
                  $formField.='&lt;/select&gt;';
                  return $formField;
  
      }
  </code></pre>
  
  <p>If in my TCA, I give <code>'type' =&gt; 'select'</code> it doesn't render anything. </p>