September 5th, 2003, 11:11 AM
Limiting Characters with COLD FUSION
September 5th, 2003, 12:45 PM
You can do this with CF on the server side very easily, something like:
<cfif len( trim( form.myFormField ) ) gt 30>
<cfset form.myFormField = left( trim( form.myFormField ), 27 ) & "...">
September 8th, 2003, 09:47 AM
Thanks for replying! I'm gonna try that as soon as it calms down here today.
I can't wait to get up to speed with CFM, the code seems so straightforward and clean.
April 11th, 2004, 01:41 AM
Limited output with an insert
Can I do this with a simple 'insert' record field?
I have a product description and would like to limit the size to 30 characters and have a link with a trailing '...' for folks to click for the full description.
Thanks...you guys rock!
April 11th, 2004, 06:27 AM
yes, eshera, you can, see post #2