FLASH - validating input fields if empty before clicking submit button

This is a discussion on "FLASH - validating input fields if empty before clicking submit button" within the Flash & Multimedia Forum section. This forum, and the thread "FLASH - validating input fields if empty before clicking submit button are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 23rd, 2007, 11:38
New Member
Join Date: Jul 2007
Location: dubai
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
FLASH - validating input fields if empty before clicking submit button

hi there..

i have a question about flash.. i'm using flash CS3 and i don't know if it really matters. here goes my question:

whenever i run to test this on first instance(see below action script), the first statement is bypassed. it would still go to the "thank you.." frame, when all i wanted to do was to prevent the submit button to send a blank field (e.g company, contact, email & product) which is mandatory in my form to be filled-up. below is my code.

// When the button is clicked and if any of the fields listed are empty display the message.
on (release) {
if (company eq "" || contact eq "" || email eq "" || product eq "") {
message = "Please fill in all mandatory fields";
//otherwise process the form and go to frame 11 "thank you for your inquiry"
} else {
loadVariablesNum("process.php", 0, "POST");
gotoAndStop(11);

if someone out there could help, it is much appreciated.. thanks!
Reply With Quote

  #2 (permalink)  
Old Jul 23rd, 2007, 16:17
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: FLASH - validating input fields if empty before clicking submit button

This was happening with a few other people as well, we are still attempting to figure it out.

I'll keep looking for an answer.
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
  #3 (permalink)  
Old Jul 24th, 2007, 08:16
New Member
Join Date: Jul 2007
Location: dubai
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Re: FLASH - validating input fields if empty before clicking submit button

Quote:
Originally Posted by Sgaspar11 View Post
This was happening with a few other people as well, we are still attempting to figure it out.

I'll keep looking for an answer.

Really? (i thought it was only me.. hehehe) But how come those people using flash in their websites doesn't have problems with their forms? But thanks anyways..
Reply With Quote
  #4 (permalink)  
Old Jul 24th, 2007, 15:38
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: FLASH - validating input fields if empty before clicking submit button

That is what I am trying to figure out. I personally don't use flash contact forms in my stuff. :-)
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
Reply

Tags
validating

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add class if input not empty on-the-fly Aso JavaScript Forum 3 Feb 28th, 2008 16:47
Validating Input Text field Mallik Flash & Multimedia Forum 1 Jun 11th, 2007 14:44
Cannot Submit Special Characters from Input Fields sboot ASP.NET Forum 1 Aug 30th, 2006 16:08
passing search data to d/b via a hyperlink and without input fields Colm Osiris Databases 5 May 23rd, 2006 11:38
Firefox 1.0.6 - strange input fields color blankconcept Web Page Design 3 May 9th, 2006 15:35


All times are GMT. The time now is 22:26.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43