Search the web
Sign In
New User? Sign Up
ydn-flash · Yahoo! Flash Developer Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Re: How to Retrieve field data using FormDataManager without ...   Message List  
Reply Message #2034 of 2201 |
Hey Buddy:
 
Was his meant for me?
 
Dave
 
In a message dated 11/4/2009 9:58:01 P.M. Central Standard Time, kayoh@... writes:
 


Hi Shade,

You can collect unvalidated data by loop through FormDataManagerEvent.collectedData.

For instance, in sample movie of SimpleFormToBegin.as , try to add those line below in handlerDataCollectionFail function.

private function handlerDataCollectionFail(e : FormDataManagerEvent) : void {
// Let's collect error messages is in the failedData.
var resultTxt : String = "### Errors in your form ### \n\n";
for (var i:String in FormDataManager.failedData) {
resultTxt += i + " : " + FormDataManager.failedData[i] + " \n";
}

/* ADD three lines below */

for (var ii:String in e.collectedData) {
resultTxt += ii + " >>> " + e.collectedData[ii] + " \n";
}

// And show it in a textArea.
if(!collectedDataOutput) this.addChild(addCollectedDataOutput());
collectedDataOutput.text = resultTxt;
}

"FormDataManagerEvent" has public var "collectedData" which is stored un-required fields' data during the validation process.

Hope this helps.

Kay.

--- In ydn-flash@yahoogroups.com, "shadetyler" <shadetyler@...> wrote:
>
> Hi everyone,
>
> I am trying to build a contact form where users can enter information
> and it will then collect and send that information to me. In the
> situation where someone decides they don't want to complete the form and
> decide to cancel, I would like to have that information collected and
> sent to me as well. I am trying to loop through the data in the static
> class FormDataManager and it will not return any values from the
> collectedData attribute unless the validation and form submittion have
> been executed. I know I could keep my own references to the form objects
> and call them directly, but the contact form is generated dynamically
> making this approach not ideal.
>
> Thanks for any suggestions.
>
> Shade
>



Sun Nov 8, 2009 7:24 am

Entek@...
Send Email Send Email

Message #2034 of 2201 |
Expand Messages Author Sort by Date

Hey Buddy: Was his meant for me? Dave In a message dated 11/4/2009 9:58:01 P.M. Central Standard Time, kayoh@... writes: Hi Shade, You can collect...
Entek@...
Send Email
Nov 8, 2009
7:24 am
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help