This is a discussion on "Message appear in form validation accordingly.. How?" within the Flash & Multimedia Forum section. This forum, and the thread "Message appear in form validation accordingly.. How? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Message appear in form validation accordingly.. How?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Message appear in form validation accordingly.. How?
Hi! I got a question about the form validation. i had create a form with the fields: iname, iemail and ihandphone number. And i had put the actionscript below to the submit button:
But when i test the movie, if I didn't enter the name, it won't appear the message "Please Enter Your Name", but straight away jump to "Required: Valid Email Address". However when I test it second time (after submit 1st time, click "back" button and test again), it does... Why? If the user didn't enter anything or enter it step by step, can it appear with the sequence? : 1) Please Enter Your Name 2) Please Enter Your Email Address 3) Required: Valid Email Address 4) Please Enter Your Handphone Number 5) Required: Valid Handphone Number 6) Please enter correct information I don't know did I explain it clearly, so I attach the .swf file here. If anybody know how to solve this problem, please reply. Thanks in advance!!! |
|
|
|
#2
|
|||
|
|||
|
Re: Message appear in form validation accordingly.. How?
Interesting, maybe we can use some trickery or something like this to make it work...
Let's add another validation to the beginning, maybe if all the fields have nto been entered it says please enter all required information.
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
|
#3
|
|||
|
|||
|
Re: Message appear in form validation accordingly.. How?
I have never programmed in Actionscript, so I'm pretty much guessing.
Is imessage a variable? Is it possible it's value gets over written if there is more than one error? i.e.
i.e.
|
|
#4
|
|||
|
|||
|
Re: Message appear in form validation accordingly.. How?
Thanks for both your replies.
I try both your suggestions, but the same problem come out. If all the fields have not been entered, it suppose to say "please enter all required information" in the first place, but the message say "Required: Valid Email Address". After enter the valid email, if the ihandphone didn't enter anthing it should says "Please Enter Your Handphone Number", but it straight away skip to "Required: Valid Handphone Number". (You can test the .swf file that I have attach below...) However, when I test it second time (after submit 1st time, click "back" button and test again), it does, it just follow the code accordingly... But why? Why the first time it won't follow it accordingly, just keep skipping to other message. I have to solve this problem ASAP, this is important. As you know, people won't be submit their information twice, and they won't try it for the second time (after submit 1st time, click "back" button and test again)... So how am I going to solve this problem? |
![]() |
| Tags |
| validation form |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Form validation help! | psycho wolvesbane | JavaScript Forum | 16 | Feb 12th, 2008 16:40 |
| AS Form / Validation Help | papalazarou78 | Flash & Multimedia Forum | 0 | Jul 31st, 2007 19:43 |
| Form Validation | feebee | JavaScript Forum | 1 | Aug 3rd, 2006 16:12 |
| PHP Form Validation. | kaz | PHP Forum | 2 | Jul 22nd, 2006 20:47 |
| Form Validation Help | gajlehab | PHP Forum | 7 | Dec 13th, 2005 19:40 |