Page 1 of 1

CaptionPosition - LEFT

Posted: Wed Jun 25, 2025 10:20 pm
by pravin0457432
Hi All,

Is it possible to change the caption position of a control, from TOP to the LEFT? At the moment we only have TOP or NONE. I have a design layout that looks like this:
Image

One of the way that I can think of to achieve this is to set the field caption to none and then create separate label for the field:
Image

There are quite a few controls on this page so having double the controls seems like a lot of duplication. Is there a better way to achieve this?

Re: CaptionPosition - LEFT

Posted: Thu Jun 26, 2025 9:24 am
by davidbalansa
If you are referring to repository fields on a web page, you could use the pre material design rendering.

Change the Define_com statement of the fields:

Define_Com Class(#STD_TEXT.EditField) ...

To

Define_Com Class(#STD_TEXT.Visual) ...

Hope this helps.

Re: CaptionPosition - LEFT

Posted: Thu Jun 26, 2025 10:49 pm
by pravin0457432
Thank you!
This was exactly what I was looking for. 8-)

Re: CaptionPosition - LEFT

Posted: Thu Jun 26, 2025 11:39 pm
by adale
Another idea to consider (for different uses of the field in your application), is you can define different Visualizations for the field in your repository.
Then when you need to include the field in a view/dialog/etc. if you click the arrow to expand the field you can select which visualization to drag to the editor. I have used this for certain numeric fields where I want the MD date or spin edit to show for general use, but I will just use the simple visual edit in my "backend/admin" application.

VL field visualization.png
VL field visualization.png (65.71 KiB) Viewed 52659 times