Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Send email message without attaching form

Avatar

Level 3

Below is a sample click event javascript for a button.  This will generate an email including form information of your choosing without attaching the actual form (PDF) itself.

This would benefit people in situations that have the form auto saving to a predetermined location, but would still like an email notification that the form has been submitted.

     var cMyMsg = "Your Text\n\n";
          cMyMsg += "Your Text " + Fieldname1.rawValue + "\n";
          cMyMsg += "Your Text " + Fieldname2.rawValue + "\n";

     app.mailMsg({
          bUI: false,
          cTo: "To EmailAddress",
          cCc: "CC EmailAddress",
          cSubject: "Your Subject Text",
          cMsg: cMyMsg
     });

Enjoy!

0 Replies