Skip to main content
Inspiring
July 14, 2020
Answered

Line Break

  • July 14, 2020
  • 1 reply
  • 789 views

Someone help pls, how to get second calculation in new line

event.value = Number(this.getField("field").valueAsString)*5 + "\n" *5;

 

This topic has been closed for replies.
Correct answer Old_Salt

 

var r = Number(this.getField("field").valueAsString);
event.value = r*5+"\n"+r*5;

 

1 reply

try67
Community Expert
Community Expert
July 14, 2020

You need to better explain what you're trying to achieve, because your code doesn't make much sense...

Asim123Author
Inspiring
July 14, 2020

Need to make line break to show same result of calculation (*5) in both rows.

try67
Community Expert
Community Expert
July 14, 2020

So you want to show the same value twice, each one in a separate line?