Copy link to clipboard
Copied
Is there a custom script I can use to make a given form field appear as a bulleted list when the user enters it in paragraph form?
Copy link to clipboard
Copied
You can use this code as the field's custom Keystroke script:
if (event.change=="\n") event.change+="\u2022\t";
And this as its On Focus script:
if (event.target.value=="") event.target.value="\u2022\t";
However, when first entering it the caret will appear before the bullet (and tab), not after it. I don't see a way around that at the moment.
Copy link to clipboard
Copied
A script can be used to automatically add a bullet after each new line in a multi-line text field, if that's what you mean.
Copy link to clipboard
Copied
Yes, that's exactly what I'm looking for, although it would be helpful if it added a bullet at the beginning of each line, instead of after a new line, since I want the first line to be bulleted as well.
So, where would I find such a script? I'm a scripting newbie and so far have only used scripts that I've found posted online. I have no idea how to write scripts myself.
Copy link to clipboard
Copied
You can use this code as the field's custom Keystroke script:
if (event.change=="\n") event.change+="\u2022\t";
And this as its On Focus script:
if (event.target.value=="") event.target.value="\u2022\t";
However, when first entering it the caret will appear before the bullet (and tab), not after it. I don't see a way around that at the moment.
Copy link to clipboard
Copied
That is hugely helpful. Thank you so much!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now