simon peter
simon peter

Reputation: 403

How do I create a messagebox to inform successful send of email n XPages?

My web page send and email after button is click. I need a messageBox after clicking the send button, the messagebox got display just normal text but if i add a variable value it wont work, any idea how i can go about these?

var Admin =  doc.getItemValueString("Admin");
var scriptCode= "alert('Email send to the admin:' + Admin )";
view.postScript(scriptCode); 

Upvotes: 0

Views: 434

Answers (1)

Panu Haaramo
Panu Haaramo

Reputation: 2932

Fix your code to look like this:

var scriptCode = "alert('Email send to the admin: " + Admin + "')";

Upvotes: 1

Related Questions