Expand my Community achievements bar.

SOLVED

Email button invisible

Avatar

Level 7

On a click event for a email button I have apply the script:

var

myDoc = event.target;

var

address = "";

var

sub = "Request";

var

msgBody = "Please see attachment.\n\nThank You!";

var

Sender = "Department_A";

myDoc.mailDoc({ bUI

: false,

cTo

: address,

cSubject

: sub,

cMsg

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

cSubmitAs

: "PDF"});

Is it possible after clicking the button and execute the script the button to become invisible?

Thanks for your help

1 Accepted Solution

Avatar

Correct answer by
Level 10

After the last line of your code place the below..

this.presence = "invisible";

Thanks

Srini

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

After the last line of your code place the below..

this.presence = "invisible";

Thanks

Srini