I recommend that you start with the AHAH example, and use the very straightforward canned callback code from there.<br><br>If that doesn't get you where you need to go, I can help you with specific code.<br><br>-Randy<br>
<br><div class="gmail_quote">On Wed, Dec 29, 2010 at 7:02 PM, <span dir="ltr"><<a href="mailto:jeff@ayendesigns.com">jeff@ayendesigns.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I'm using the example out of Drupal Pro Development actually.<br>
<br>
<br>
I have a menu callback, and my form alter is<br>
<br>
<br>
function test_form_alter(&$form, &$form_state, $form_id) {<br>
$form['field_one']['#prefix'] = '<div id="field-one">';<br>
$form['field_one']['#suffix'] = '</div>';<br>
<br>
$form['field_two']['#ahah'] = array(<br>
'path' => 'test/stuff_js',<br>
'wrapper' => 'field-one'<br>
);<br>
<br>
<br>
The form array contains the original fields, though they don't show on the page or appear in the html. The values above appear in the form array, but not in the field-info section.<div><div></div><div class="h5"><br>
<br>
<br>
On 12/29/2010 08:28 PM, Randy Fay wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Please describe the entire sequence. *When* does a field disappear? When you activate the #ahah-enabled element? That means you're most of the way there, but you've put #prefix/suffix around both forms somehow and are not returning a reasonable bit of markup.<br>
<br>
Please make sure you dsm() or debug your form after altering to see what you've actually got.<br>
<br>
Are you using the base code provided by the AHAH Example in the Examples project?<br>
<br>
</blockquote>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Randy Fay<br>Drupal Module and Site Development<br><a href="mailto:randy@randyfay.com">randy@randyfay.com</a><br>+1 970.462.7450<br><br>