Form - using @mailsend along with a @Prompt[ok]

I have a button that saves the document then sends an email to 3 people based on a field choice.

@Command([FileSave]);

subject:=“The Subject - The Database”;

body:="A new entry has been made. Click on this link to view → ";

@If(field = “fieldchoice”;@MailSend(“person1”:“person2”:“peerson3”;“”;“”;subject;“”;body;[IncludeDoclink]);


So if I wanted to cc someone, in this case personx is an author field, I would write this, correct? The

(“person1”:“person2”:“peerson3”; personx;“”;“”;subject;“”;body;[IncludeDoclink]);

Ok, so, is there a way once it sends to make a ok window pop up to say who it sent the email to or maybe, the email sent?

@Prompt[ok]; Thank You! Your new document has been save. An email has been sent ot the manager. )

Subject: form - using @mailsend along with a @Prompt[ok]

Sure, try this

list:=@Unique(“person1”:“person2”:“person3”);

@Prompt([ok];@DbTitle;“Thank You! Your new document has been saved and mail notifications have been sent to : " + @Implode(list;”,") )

Subject: RE: form - using @mailsend along with a @Prompt[ok]

I’m getting this:An operator or semicolon was expected but none was encountered?

Also, will person 3 get cc’ed since I have a ;

@Command([FileSave]);

subject:=“The Subject - The Database”;

body:="A new entry has been made. Click on this link to view → ";

@If(field = “fieldchoice”;@MailSend(“person1”:“person2”;“person3”;“”;“”;subject;“”;body;[IncludeDoclink]);

list:=@Unique(“person1”:“person2”;“person3”);

@Prompt([ok];@DbTitle;“Thank You! Your new document has been saved and mail notifications have been sent to : " + @Implode(list;”,") )

Subject: RE: form - using @mailsend along with a @Prompt[ok]

I’m getting this message: Inappropriate ( unary ) usage of an operator: ‘;’

I took the list part out.

The @Prompt([o]);@DbTitle; part is not make a prompt come up when I click on the save button.

Can someone tell me what I’m doing wrong?

@Command([FileSave]);

subject:=“The Subject - The Database”;

body:="A new entry has been made. Click on this link to view → ";

@If(field = “fieldchoice”;@MailSend(“person1”:“person2”;“person3”;“”;“”;subject;“”;body;[IncludeDoclink]);

list:=@Unique(“person1”:“person2”;“person3”);

@Prompt([ok];@DbTitle;“Thank You! Your new document has been saved and mail notifications have been sent to : " + @Implode(list;”,") )

Subject: Your error is “;” needs to be “:”

list:=@Unique(“person1”:“person2”;“person3”);should be:

list:=@Unique(“person1”:“person2”:“person3”);

Subject: RE: Your error is “;” needs to be “:”

I changed it and still get the same message?

Does anyone know what’s the correct code?

Subject: *Did you change it both places?

Subject: RE: *Did you change it both places?

Yes, I did and when I save I get that message.

@Command([FileSave]);

subject:=“The Subject - The Database”;

body:="A new entry has been made. Click on this link to view → ";

@If(field = “fieldchoice”;@MailSend(“person1”:“person2”:“person3”;“”;“”;subject;“”;body;[IncludeDoclink]);

list:=@Unique(“person1”:“person2”:“person3”);

@Prompt([ok];@DbTitle;“Thank You! Your new document has been saved and mail notifications have been sent to : " + @Implode(list;”,") )

Subject: RE: *Did you change it both places?

Do you mean the following line to be a complete @If statement, or just the first part?

@If(field = “fieldchoice”;@MailSend(“person1”:“person2”:“person3”;“”;“”;subject;“”;body;[IncludeDoclink]);

because it looks like it should be

@If(field = “fieldchoice”;@MailSend(“person1”:“person2”:“person3”;“”;“”;subject;“”;body;[IncludeDoclink]); “”);

Subject: RE: form - using @mailsend along with a @Prompt[ok]

Replacelist:=@Unique(“person1”:“person2”;“person3”);

with

list:=@Unique(“person1”:“person2”:“person3”);