Dynamic DWA Custom Form

I am trying to set up a custom form that pops up when a user click a ‘Reply’ menu action, I have followed the information in the “DWA 7 Customization” redpaper.

I have the action and it opens the custom form when the action is clicked.

I can pass the values from the custom form to the new mail memo.

I have created Custom_InfoFields and Custom_InfoFieldsHTML subforms which pass the info to the new Memo in and tags as per the redpaper.

What I would like to do is populate the Select input option in the Custom Form with a value from the underlying email, rather than hard coding it as per the redpaper.

REDPAPER CODE:

MY CODE:

document.s_NamesInfo.DOC_NAMES.options.length =0; document.s_NamesInfo.DOC_NAMES.options[0]=new Option(“AN Other”);// Hardcoded name

document.s_NamesInfo.DOC_NAMES.options[1]=new Option(DOC_ORIGINATOR); //dynamic value

Where DOC_ORIGINATOR is the value from the underlying email

Anybody have any ideas

Thanks.

David

Subject: Dynamic DWA Custom Form solved

I have managed to sort this out, I passed the value into the showModalDialog() method

Subject: another problem with customizing DWA

I have another problem with my customization of DWA.

I am modifying the code in the redpaper as a starting point.

I am passing the BodyHtml variable from the original email to a new memo.

the original email’s body has information that has been forwarded from somebody else, which was previously sent to them from a third party.

so in the body of the email, it would have

“some text from the forwarder”

then

"-----Forwarded by <username/domain> on 05/11/2008 15:33 -----

From: <another user/domain>

To: <username/domain>

info from the third party, etc".

when I use the encodeURI(BodyHtml) and

the Custom_InfoFieldsHTML subform which contains;

<input type=“hidden” name=“DOC_BODY” value=“decodeURI(@{DOC_BODY}”) />

and

the Custom_InfoFields subform which contains;

the new memo’s Body field holds;

“some text from the forwarder”, but not the info that was forwarded.

when I use the encodeURIComponent and the decodeURIComponent, I get

‘Page cannot be found’

does anyone have any ideas on this

Thanks.

David