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.
SOLVED

error I can't figure out

Avatar

Level 7

Hello,

I have this script in a submit button:

//Create a variable to hold the document object

var oDoc = event.target;

oDoc.mailDoc({

bUI: true,

cTo:  heading.system.rawValue,

cCc: "",

cSubject: heading.sevLevel.rawValue" - " + heading.description.rawValue" - " + heading.location.formattedValue,

cMsg: formFields.symptoms.rawValue" - " + formFields.whoExp.rawValue" - " + formFields.whereOccurred.rawValue" - " + formFields.whatEquip.rawValue" - " + formFields.troubleShooting.rawValue,

});

When I verify the script, I get a message expected } line 9. I can't figure out what's wrong.

Thanks,

MDawn

1 Accepted Solution

Avatar

Correct answer by
Level 8

You're missing a plus + before your "-".

Kyle

View solution in original post

1 Reply

Avatar

Correct answer by
Level 8

You're missing a plus + before your "-".

Kyle