How do I format an image field so that the user inserted image is centered in the field?

Mark Solution

Are these answers useful?
Help other community members by marking useful answers as accepted.

Accepted Solutions (0)

Answers (2)

Answers (2)

MHaywood323 14-04-2015

I normally use the old Text Field Trick in LiveCycle.

Create a new Text Field, Set your Text Justification Options and then change the Field to Image Field.

It will retain the Text Field Settings from before.. Used that "trick" many times.


If your image field has "use original size" as a sizing option then the image will end up in the top left corner.  If you add the following JavaScript in the initialise event of the image field then it will be centered.

this.para.vAlign = "middle";

this.para.hAlign = "center";