Groups | Blog | Home
all groups > coldfusion flash integration > august 2006 >

coldfusion flash integration : Truncate within a bind statement


ttedeschi
8/14/2006 5:48:32 PM
Hi folks-

I'm binding to two fields, firstName and lastName, to populate an E-mail
adddress field:

<cfinput type="Text" name="email" SIZE="25" required="no"
bind="{FirstName.text}{LastName.text}@companyname.com">

I'd like to use just the first letter of the firstName field, rather than the
whole first name. Seems simple enough normally, but am I correct in assuming
that I can't use normal ColdFusion functions in this instance and need to use
ActionScript to capture the first letter of the "firstName" within the bind
statement? Any thoughts would be appreciated.

Thanks in advance,

- Tom Tedeschi
Nick Watson
8/15/2006 10:30:00 PM
Try this
ttedeschi
8/16/2006 4:39:45 PM
Perfect! Thanks a bunch, Nick.
AddThis Social Bookmark Button