Jump to content

Trying to change font point size based on length of string


Recommended Posts

Hi all,

 

I'm trying to change my field font size depending on the length of the string in the field. This is my script:

 

if(Len(Field(“First”))>4)
{
return “<span pointsize=6.5>” +  Field(“First”) + “</span>”;
}
else
{
return “<span  pointsize=20.5>” + Field(“First”) + “</span>”;
}

 

But all that does is returns the physical string of

 

<span pointsize=20.5>MyText</span>

 

any ideas?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...