harveyball Posted May 27, 2009 Share Posted May 27, 2009 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 More sharing options...
LesSjo Posted May 27, 2009 Share Posted May 27, 2009 Try changing the double quotes around your span tags to single quotes, and make sure the "treat returned strings as tagged text" is checked. Link to comment Share on other sites More sharing options...
Dan Korn Posted May 27, 2009 Share Posted May 27, 2009 You should take a look at the CopyfitLine function. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.