I can't seem to alter the justification of the data in the field. It is automatically left justified. I have a list of items that I need to have centered and not left justified.
Copy link to clipboard
Not possible. You can add spaces (or tabs, using a script) before the
Where can you add a script, I tried looking for that as well?
You don't add this script. You need to execute it (from the JS Console, for example) to set the items of the field.
The code would be something like this:
this.getField("Dropdown1").setItems(["\tItem1", "\tItem 1.1", "\t\tItem 1.2", "\tItem 2"]);
The "\t" escape character is a tab. I used it twice to create indentation, but you can use it only once to align the text (somewhat) to the center of the field.
Would I apply this to the format field?
If I'm undertanding correctly and you are talking about the alignment of text that a user will enter (or has entered) inside a FIELD, you can adjust the alignment in the field's PROPERTIES menu >> in the OPTIONS tab.
See attached image.
This is a text field. The question was about a drop-down field...
Ahhhhh. I understand.