Using the ahah_helper_demo module, if you change a textfield to a textarea, the textarea will repeat itself when the ahah_helper_module is executed. You must have FCKeditor module installed/enabled to view this problem.
$form['billing_info']['company_name'] = array(
'#type' => 'textfield',
'#title' => t('Company name'),
'#required' => TRUE,
'#size' => 20,
'#maxlength' => 255,
// If the user switched to Private usage and back to Company usage, we
// remembered his company's name!
'#default_value' => $form_state['storage']['billing_info']['company_name'],
);
To
$form['billing_info']['company_name'] = array(
'#type' => 'textarea',
'#title' => t('Company name'),
'#required' => TRUE,
// If the user switched to Private usage and back to Company usage, we
// remembered his company's name!
'#default_value' => $form_state['storage']['billing_info']['company_name'],
);
Comments
Comment #1
wulff commentedI tried installing FCKeditor and the AHAH helper demo module, but I can't seem to reproduce this error.
Can you post a screenshot and the javascript inserted by FCKeditor?
Comment #2
jefflane commentedAttached is the screen shot. Note that I had to flip through the selection box to get ahah_helper active. Once flipped from private to company, the extra textarea appeared.
Comment #3
jefflane commentedapplicable JS from Firebug
section 1
And section 2 (as opposed to pasting the whole file. I hope I am not missing anything...)
Comment #4
Rok Žlender commentedPlease reopen if this is still an issue.