Skip to main content
Inspiring
Jul 14, 2020 8:12 PM UTC
Answered

Line Break

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

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

 

This topic is closed to new replies. Start a new post to keep the conversation going.
Old_Salt
Old_SaltCorrect answer
Participating Frequently
Jul 14, 2020 9:58 PM UTC

 

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

 

5 replies

try67
Community Expert
Community Expert
Jul 14, 2020 8:38 PM UTC

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

Translate
Asim123Author
Inspiring
Jul 14, 2020 8:55 PM UTC

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

Translate
try67
Community Expert
Community Expert
Jul 14, 2020 9:55 PM UTC

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

Translate