I’m trying to show a FBJS Dialog with a multiline message.
message += "Please enter the name of the Post.\n"
message += "Please enter content.\n"
message += "Content must have at least 10 characters.";
new Dialog().showMessage("Error", message);
But that piece of code shows the message in the same line.
Does anybody knows how to do that?
Thanks.
Ernesto Carrión
You should use an fb:js-string when you have something other than text to show in a dialog.
Here’s an example:
And then you have the function that shows the dialog: