When handling form submission. Is there a way to grab all the fields wrapped in a specific Form tag and send them as an object to a function much like a GET or POST works in HTML.

a form example:

<mx:Form id="userForm">
                <mx:FormItem label="Login ID" required="true" >
                        <mx:TextInput id="username" width="100" restrict="^ "/>
                </mx:FormItem>
                <mx:FormItem label="User Name" required="true">
                                <mx:TextInput id="firstname" width="75">
                                <mx:TextInput id="lastname"  width="75" />
                </mx:FormItem>
        </mx:Form>

<mx:ControlBar>
<mx:ButtonBar id="adduser" dataProvider="{buttonlist}" itemClick="clickHandler(event);"/>
        </mx:ControlBar>

can I grab all the values of the submission in as userForm.values (or something like that) OR do I have to get each one individually as

username.text
firstname.text
lastname.text

...blah, blah...


thanks, Kevin



Reply via email to