Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Email Subject Question

Avatar

Level 7

I have a Drop box list(Drop_1) with the items below:

Items    Value

AB          1

AC          2

AD          3

How I can include into email subject the selected every time item from the DropBox(No the value)?

Here is the script for the eMAIL BUTTON:

form1.Page1.Sub_1.Mail_HR::click - (JavaScript, client)

var

myDoc = event.target;

var

address = "";

var

sub = "Staffing Req - ";

var

Sender =(form1.Page1.Sub_1.Drop_1.rawValue);

var

msgBody = "See my staffing Requisition Form attached.\n\nThank You!";

myDoc.mailDoc({ bUI

: false,

cTo

: address,

cSubject

: sub + Sender,

cMsg

: msgBody + "\n\nRegards\n",

cSubmitAs

: "PDF"});

1 Accepted Solution

Avatar

Correct answer by
Level 10

Try this..

sub = "Staffing Req - " + Drop_1.getDisplayItem(Drop_1.selectedIndex) ;

var

Thanks

Srini

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Try this..

sub = "Staffing Req - " + Drop_1.getDisplayItem(Drop_1.selectedIndex) ;

var

Thanks

Srini