Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Mike Nimer #1
Re: flash form validation functions
had to play around with it, turns out you can't put that complex of
actionscript in the bind attribute. But if you use a button, or anything
with a onClick or onChange event you can do it.
try this
--------------
<cfform format='flash' width='250'>
<cfinput type='text' name='prefix' label='Prefix'>
<cfinput type='text' name='firstname' label='First Name'>
<cfinput type='text' name='lastname' label='Last Name'>
<cfinput type="Button" name="checkname" value="check name" onClick="if(
prefix.text.length != 0 && firstname.text.length != 0 &&
lastname.text.length != 0 ){ completename.text = prefix.text +' '
+lastname.text +',' +firstname.text; } else { completename.text = 'Name Not
Complete';}">
<cfformitem type='hrule'></cfformitem>
<cfinput type='text' name='completename' label='Full Name'>
</cfform>
----------------
hth,
---nimer
"jorgeloyo" <webforumsuser@macromedia.com> wrote in message
news:cur8gc$dkf$1@forums.macromedia.com...> Here's an example... Basically, depending on the values of some form
> fields, I
> may want to change the value of another forn element or change the actual
> form
> action. Or perhaps have a check to see if all the required fields in an
> accordion page have been filled out, and if so, enable or make visible
> some
> additional information. Everything WILL be done within the flash form, but
> the
> checks do require if...else statements. :-( Thank you for your help all
> day. I
> truly appreciate it <cfform format='flash' width='250'> <cfinput
> type='text'
> name='prefix' label='Prefix'> <cfinput type='text' name='firstname'
> label='First Name'> <cfinput type='text' name='lastname' label='Last
> Name'>
> <cfformitem type='hrule'></cfformitem> <cfinput type='text'
> name='completename' label='Full Name' bind=' if( {prefix.text !=
> undefined}
> && {firstname.text != undefined} && lastname.text !=
> undefined}
> ) return {prefix.text} {lastname.text}, {firstname.text} else return 'Name
> Not
> Complete' '> </cfform>
>
Mike Nimer Guest
-
Flash form with cfinput validation not working
when using a cfform with format flash and using a cfinput in that form the validate field does not work. but when using the same validation with a... -
Flash Form Validation
Hi, I have a flash form as below. <cfform action="#CGI.SCRIPT_NAME#?event=users.passwordchangeaction" method="post" name="passwordchange"... -
Rich flash forms and validation functions
Hi. I used to use the following to validate my forms: <!--- init form feilds ---> <cfparam name='form.FirstName' default=''> <cfparam... -
Validation with a flash form
You need to do this with inline actionscript, instead of javascript. try this: <cfform format="flash"> <cfinput type="Text" name="jsPass1"... -
form validation in flash mx
i've created a simple form in flash that is hooked to a scrpit that handles the information but i wish for flash to validate some basic info before... -



Reply With Quote

