Copy link to clipboard
Copied
Someone help pls, how to get second calculation in new line
event.value = Number(this.getField("field").valueAsString)*5 + "\n" *5;
var r = Number(this.getField("field").valueAsString);
event.value = r*5+"\n"+r*5;
Copy link to clipboard
Copied
You need to better explain what you're trying to achieve, because your code doesn't make much sense...
Copy link to clipboard
Copied
Need to make line break to show same result of calculation (*5) in both rows.
Copy link to clipboard
Copied
So you want to show the same value twice, each one in a separate line?
Copy link to clipboard
Copied
var r = Number(this.getField("field").valueAsString);
event.value = r*5+"\n"+r*5;
Copy link to clipboard
Copied
Thanks, that worked.