Welcome!

This community is for professionals and enthusiasts of the Genio platform.
Share your questions and challenges, and help your partners!

1

0
John Crimson
On 25/9/2019 上午10:15

I think the solution "just empty out the label text and use the "static text" special control in the form definition" is the canonical answer. We should avoid manual code as much as possible.



0
Rodrigo Serafim
On 24/9/2019 下午1:47

Labels are meant to be small titles associated to input fields, not whole questions that are better represented as data than as interface text. The Label pattern does not offer that functionality.

One solution is to work with the css styles to create a class that will provide word-wrap and will force a max-width to the field. The minor details for respecting interface responsiveness to multiple screen sizes are hard to determine, but should be something like:

.multiline-label label {
    overflow-wrap: break-word;
    max-width: 150px;
}

Then in the form editor you can set the "style" property for those controls. But you will have to tweak things around, especially with the pixel width until you get acceptable results.

Another solution is to just empty out the label text and use the "static text" special control in the form definition. There you can try to control the line-breaks with html br elements. Remember to activate the "html?" option.

  • Flag

Can you show me where I should put this code

Mauro Kane
on 24/9/2019 下午3:06

For the stylesheet you use the CSS_STYLE manwin of the MVC platform. For the html classname I already said it in the answer, you go to the form editor, select the field, and use the "style" property,

Rodrigo Serafim
on 25/9/2019 上午10:06

Keep Informed

About the Community

This platform is for beginners and experts willing to share their Genio knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers. Read Guidelines

Question tools

8 follower(s)

Stats

Asked: 23/9/2019 下午1:59
Seen: 1745 times
Last updated: 9/10/2019 下午1:36