Javascript new line
New Line: \n
Empty Line (row): \n\n
Half Empty Line (row): ?
Is there such thing?
New Line: \n
Empty Line (row): \n\n
Half Empty Line (row): ?
Is there such thing?
You can use richValue to set empty text with whatever size you want your empty line to be.
try adapt this to your code:
var spans = new Array();
spans[0] = new Object();
spans[0].text = " \n";
spans[0].textSize = 5;
event.richValue = spans;}
For some reason I thought that wouldn't change the height of the line, but it does... The full code would be:
var spans = new Array();
spans[0] = new Object();
spans[0].text = "Line 1\n";
spans[0].textSize = 10;
spans[1] = new Object();
spans[1].text = "\n";
spans[1].textSize = 5; // change this value to change the distance between the two lines
spans[2] = new Object();
spans[2].text = "Line 2";
spans[2].textSize = 10;
this.getField("Text1").richValue = spans;
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.