Copy link to clipboard
Copied
Is there a way to align text in a Text Field after inserting bullets? I have a script that inserts a bullet on each new line, but inputs that are too long will align left. My only idea is to insert a space on each line that isn't a "\n" new line. Any thoughts or suggestions? I have my script below and a screenshot of the results.
if(event.value != "") {
event.value = event.value.split(/[\n\r]/g).map(function(a){return "\u2b29 " + a}).join("\n");
}
Copy link to clipboard
Copied
So you want a hanging paragragh. I think you might be able to do this with Rich Text. Check out the options available by first setting it up manually with a rich text field. Then use a script in the console window to see if the span properties, many of which are undocumented, provide support for the hanging paragraph.
Use the Acrobat JavaScript Reference early and often
Copy link to clipboard
Copied
Not possible, unless you write a function that correctly calculates the width of the text and use that to add extra spaces to it.
Copy link to clipboard
Copied
So you want a hanging paragragh. I think you might be able to do this with Rich Text. Check out the options available by first setting it up manually with a rich text field. Then use a script in the console window to see if the span properties, many of which are undocumented, provide support for the hanging paragraph.
Use the Acrobat JavaScript Reference early and often
Copy link to clipboard
Copied
Thank you for the suggestion! I'll post my solution if I'm able to get it working properly.

