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

Regards

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    author's profile photo
    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 comment
    10|10000 characters needed characters exceeded