mstanton Posted November 16, 2009 Share Posted November 16, 2009 I have a need to return different formatted text resources based on the length of a particular field. For instance, if the length of Field("Message") is between 160 and 1444 characters, return Resource("OnePageLetter"). Otherwise, return nothing. I've tried several things but I don't really understand Javascript very well so nothing is working. Can anyone help? Link to comment Share on other sites More sharing options...
Dan Korn Posted November 16, 2009 Share Posted November 16, 2009 if the length of Field("Message") is between 160 and 1444 characters, return Resource("OnePageLetter"). Otherwise, return nothing. var len = Field("Message").length; if (len >= 160 && len <= 1444) return Resource("OnePageLetter"); //else return ""; Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.