I have did this and can select the prefix when am filling out the form but will not assign the thread with the prefix i have to then go back in and edit the thread and pick the thread prefix and the it does assign it.
Help please
Quote:
Originally Posted by bananalive
Create Custom Question
- Reference Name:
- PHP Code:
PHP Code:
require_once(DIR . '/includes/functions_prefix.php');
$thisanswer = $q[$formbit[id]];
$prefix_options = fetch_prefix_html($form['forumid'], $thisanswer, true);
$answer = '<select name="' . $formbit[id] . '" id="q_' . $formbit[id] . '" class="bginput">';
$answer .= '<option value="">'.$vbphrase[no_prefix_meta].'</option>';
$answer .= $prefix_options;
$answer .= '</select>';
Add the following to Form Hook: Before Submit:
PHP Code:
$form['prefixid'] = $qo['prefix'];
|