# How do you align text in a form field

I have the text aligned to center in a query, but it doesn't align to center on the form. I have Googled this and not found the answer. When I edit the form and click on a text box and then right click to alignment, there is no selection possible. Also the align button on the top tool-bar is grayed out.

Is there an easy way or ??

edit retag close merge delete

Sort by » oldest newest most voted

Alignment is found in the properties of a control. Right click the control & select Control (if a table, right the the column header & select Column). This brings up the properties dialog. You change alignment here:

Please refer to the LO documentation for more information. It contains more specifics on properties.

The formatting toolbar is not active when working with controls. If you click on the form itself, it is available.

If this answers your question please click on the ✔ (upper left area of answer).

more

Although posted in a comment on your first question, here is the location of the LO Base documentation - click here.

( 2017-05-06 18:04:06 +0200 )edit

Thanks - but does this actually work?

I tried all four values for vertical alignment: default, top, bottom and middle

Whenever I edit the form field, while I select the form field, it is aligned middle. And when I leave it, it is aligned top.

I checked with several PDF readers, all show this same.

more

Maybe it depends on which operating system you are using or which LO version. Does it work in LibreOffice?

( 2019-07-16 09:53:44 +0200 )edit

It does work within LO. But it doesn't for the PDF export. If you like I can send the form to you.

( 2019-07-16 09:58:24 +0200 )edit

@traut - There is no reference to Vertical alignment in the answer. There is also no reference to 'top, bottom and middle'. You may be looking at alignment of controls in toolbar.

( 2019-08-12 02:38:55 +0200 )edit

I'm not aware of any toolbar which does define the alignment of text within a form field - but even if, how would it change the behavior?

( 2019-08-13 11:06:27 +0200 )edit

Where did you find:

values for vertical alignment: default, top, bottom and middle


as this was not in the answer presented.

( 2019-08-15 02:04:11 +0200 )edit

This was shown in the very first question: https://ibb.co/hVWFfGw

( 2019-08-15 10:33:38 +0200 )edit

Retracted my last comment by deleting it. Now realize the situation. This question is regarding Base. Your situation seems to be with Writer. The Text Box control in Writer does contain Vertical alignment but not when used in Base.

Best to ask as new question.

( 2019-08-15 19:53:06 +0200 )edit

I don't know where and how you do read the answers here - but I do see on this page a screenshot of the text box properties, comparable to my screenshot.

So I do understand that the text box properties are not the properties of the form field itself? A Text Box is not a form field for text?

So when I do enter text, it's not within a form field but within a text box? Then how do I create a form field to enter text - since the form menu does offer this as "text box" form, but nothing else for text : form menu

And still the question does remain: Why am I able to define horizontal alignment for this text box - which does work as expected. But I'm able to define vertical alignment for this text box, too - which does have no effect at all.

( 2019-08-15 20:46:05 +0200 )edit

Have retracted my previous comment. Have found Vertical alignment in Base control (greyed out). Will try some testing with that.

( 2019-08-15 21:27:02 +0200 )edit

Can confirm what you have stated. Vertical (only available with single-line text type), displays correctly on Form but PDF is always centered.

Best to file bug report -> Bugzilla

( 2019-08-15 21:45:09 +0200 )edit

## Stats

Asked: 2017-05-06 17:23:38 +0200

Seen: 381 times

Last updated: Jul 16