Skip to main content
Inspiring
July 14, 2020
解決済み

Line Break

  • July 14, 2020
  • 返信数 5.
  • 813 ビュー

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

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

 

このトピックへの返信は締め切られました。
解決に役立った回答 Old_Salt

 

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

 

返信数 5

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...

Asim123作成者
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?