Skip to Content

Dinamic size font in smartform

Hi everyone,

One question,

I've a smartform and in one of the windows the text is variable. For example the windows contains a "logo" (but is a text).

This text must be in one row. The font size is fixed, and the problem is that sometimes as the text is too long therefore the logo appears in two rows, and this is wrong. It must appear only in one row.

My question is, can I setup the font size according to the long of the text. I mean according to the variable lenght, the size of the font can be dinamic ?

My idea is to do something like this

if strlen( v_variable ) gt 15.

font size = 20

Do I explain my selft ?

Thanks in advance


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 04, 2011 at 08:51 AM

    you can add a coding block to your smartform where you determine the stringlength like described above.

    Then you can can make a if node, and then place output with different paragraph formats.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.