View Single Post
  #3  
Old December 31st, 2021, 05:15 AM
jwhittaker jwhittaker is offline
Senior Contributor
 
Join Date: Feb 2009
Location: San Diego
Posts: 169
Default Re: Trimming Text based on character count

D Miller
You could try something like this? I know there is a more efficient way but this should still work.

if (Len(Field("Email")) >= 32)
{
var emailarray = Field("Email").split("@");
return emailarray[0] + '<p>' + "@" + emailarray[1];
}
else
return Field("Email");
__________________
FusionPro VDP Creator 10.0.26 | MacOS 10.13.4 | Acrobat DC
Reply With Quote