Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
honestnotes webforumsuser@macromedia.com #1
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 it is submitted to the script.
i tired using the "if" command but could not get it to work.
What is the action I need to put in in order to have it check if there's a "@" included in an email field for example ? I know the == command but what about "isf a certain symbol included i nthe field, Then ..." type of command ?
Thank you for your help
s.
honestnotes webforumsuser@macromedia.com 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... -
CFFORM Validation trumping Custom Form Validation
Is there any way for custom form validation to work in concert with the cfform validation? I have a custom script that compares the values of two... -
Flash Form Validation
Hi, I have a flash form as below. <cfform action="#CGI.SCRIPT_NAME#?event=users.passwordchangeaction" method="post" name="passwordchange"... -
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... -
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"... -
MarxEinstein webforumsuser@macromedia.com #2
Re: form validation in flash mx
if(mailText.indexOf("@")<>-1){
// included @
.......
}else{
//no @
......
}
MarxEinstein webforumsuser@macromedia.com Guest
-
honestnotes webforumsuser@macromedia.com #3
Re: form validation in flash mx
thanks for your reply
this is not working for me - maybe i am not changing the right parameters.
the valiable i need to check is named "email"
please advice
thank u again .
honestnotes webforumsuser@macromedia.com Guest
-
MarxEinstein webforumsuser@macromedia.com #4
Re: form validation in flash mx
if(email.indexOf("@")<>-1){
........
what is type of the variable "email"?
MarxEinstein webforumsuser@macromedia.com Guest
-
honestnotes webforumsuser@macromedia.com #5
Re: form validation in flash mx
it's an input text var.
is that ok ?
honestnotes webforumsuser@macromedia.com Guest
-
MarxEinstein webforumsuser@macromedia.com #6
Re: form validation in flash mx
I have tested in my computer,it's Ok.
.......
MarxEinstein webforumsuser@macromedia.com Guest
-
honestnotes webforumsuser@macromedia.com #7
Re: form validation in flash mx
It works - THANK YOU SO SO SO SO MUCH !
Peace
s.
honestnotes webforumsuser@macromedia.com Guest
-
honestnotes webforumsuser@macromedia.com #8
Re: form validation in flash mx
While we are here let me ask you tow more quick questions regarding this matter :
How do i validate a var to include only numerals?
and also how do i sting all of these validations together? I need something like
if A does not include B the B=_______, and if X does not include y then X=___________ ( etc... ) -
else >>>>>> ....
thanks for your help.
s.
honestnotes webforumsuser@macromedia.com Guest
-
honestnotes webforumsuser@macromedia.com #9
Re: form validation in flash mx
help anyone ?
honestnotes webforumsuser@macromedia.com Guest
-
MarxEinstein #10
Re: form validation in flash mx
It is an easy job, it can be done without ActionScript.Select the inputText, and look at the properties window, there is a button named "character", press it , and you can define what letters can be fill in the inputText. you can defined "1234567890", and users can not type any other letters in you inputText but Numbers.
MarxEinstein Guest



Reply With Quote

