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.

Please make sure you dsm() or debug your form after altering to see what you've actually got.

Are you using the base code provided by the AHAH Example in the Examples project?

Thanks,
-Randy

On Wed, Dec 29, 2010 at 6:21 PM, <jeff@ayendesigns.com> wrote:
I have a form as a result of content profile. I want to add an #AHAH attribute to one of the fields, and #PREFIX/#SUFFIX to another to receive the ajax return, in hook_form_alter. When I do that ($form[myfield][#prefix]=) both fields disappear.


My head is swimming looking at all the posts on this and the various hacks to solve it. I've read discussions of using pre-render, after-build, drupal_add_js to manually inject the ahah...is there a clean way to do this?


Jeff


--

Ayen Designs
388 Bullsboro Drive #105 · Newnan, Georgia 30263

404-271-9734
Web:ayendesigns.com
Blog: theAccidentalCoder.com
Drupal: j. ayen green
IRQ: j_ayen_green
IM (Yahoo) baalwww    (MSN) baalwww@yahoo.com
Skype: ayendesigns

Ayen Designs is a tradename of the computer services division of




--
Randy Fay
Drupal Module and Site Development
randy@randyfay.com
+1  970.462.7450