cancel
Showing results for 
Search instead for 
Did you mean: 

Personas Script editor

former_member546954
Discoverer
0 Kudos

We are using SP05 personas here, But when scripting in personas, we have to write script in one line. Like below:

If we broke above lines in multiple lines – Like below. All the lines will error out.

It is too tedious to write code in one line in personas script editor. Is there any solution out there for this matter?

Accepted Solutions (1)

Accepted Solutions (1)

cristin_charbonneau
Participant

Hi Nixal.

What I have done in the past is build the string over multiple lines using the "+=" to append each line to the string. It worked well for me.

Kind Regards,

Cristin

var chartHTML = "<html><head>";
chartHTML += "<script type=\"text/javascript\" src=\"https://www.gstatic.com/charts/loader.js\"></script>";
chartHTML += "<script type=\"text/javascript\">"; 
(and so on...)

Answers (1)

Answers (1)

pramod_nagargoje
Explorer
0 Kudos

You can also do something like this.

var tableHTML = "<html> <some code>"+

"<some other code>"+

"</html>";