Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Trouble with a submit button to email

Avatar

Level 7

Hello,

I'm using this script:

//Create a variable to hold the document object

var oDoc = event.target;

oDoc.mailDoc({

bUI: true,

cTo: "gs@fheg.follett.com" ,

cSubject: page1.top.posSub.storeNbr.rawValue + " " + page1.top.positioned.request.rawValue,

cMsg: "Please attach any specfic art files or logos to this email.",

});

For the user to click a Submit button and have an email created. However, the Outlook email window never opens.

I'd appreciate some help on what's wrong with my script. I've used it successfully before, so I'm stumped on what I've done to it.

Thanks,

MDawn

1 Reply

Avatar

Level 7

I figured this out finally and it was totally my own fault. This field had a wrong path name:

page1.top.positioned.request.rawValue

Fixed now!

Thanks,

MDawn