The field name over the field

Hi.

How can see the field name over the field.: Creating a Custom Theme :: Jmix Documentation

Screenshot from 2022-08-07 09-54-46
Thanks in advance

Hi,

Could you please describe your task in more detail? For now, it’s unclear what you’re trying to achieve.

Regards,
Gleb

Hi,
jmix sample in https://demo.jmix.io/sampler/#main/0/sample?id=textfield-simple:
jmixSample
caption is above

<window xmlns="http://jmix.io/schema/ui/window">
    <layout spacing="true">
        <textField id="simpleCaptionTextField" caption="msg://textField.simpleCaption"
                   description="msg://textField.description"/>
        <textField id="captionLengthTextField" caption="msg://textField.captionLength"
                   maxLength="10"/>
    </layout>
</window>

my sample:
myapp
caption is next to

<window xmlns="http://jmix.io/schema/ui/window"
...some  code remove
 <layout spacing="true" expand="formBox" >
        <vbox id="formBox" spacing="true">
            <form id="form" dataContainer="c_BPARTNERDc"   >
                <column width="350px">
                    <textField id="textFieldField" property="textField" />
                </column>
            </form>
        </vbox>
        <hbox id="editActions" spacing="true">
            <button id="commitAndCloseBtn" action="windowCommitAndClose"/>
            <button id="commitBtn" action="windowCommit"/>
            <button id="closeBtn" action="windowClose"/>
        </hbox>
    </layout>
</window>

and the question is:
How put te caption above and not nex to.

The Form component has the captionPosition attribute. Set it to TOP and the field captions will be on top.

Regards,
Gleb