2 Replies Latest reply on May 13, 2010 10:30 AM by kearn7777

    how to make data persist in form?

    kearn7777

      Hi

       

      I've made multiple forms for a Web site. Each form is within its own module. The problem is the data entered into a form disappears as soon as the user shifts to another form (and consequently, another module). How to make the data persist in the form even if the user shifts away to another module? I've tried using a Model to hold the data but the data didn't stay in the text fields.

       

      <fx:Declarations>

           <fx:Model  id="babyModel1">

                <BabyForm>

                     <CleaningProducts>{babyCleanProd.text}</CleaningProducts>

                     <BabyProducts>{babyProd.text}</BabyProducts>

                </BabyForm>

           </fx:Model>

      </fx:Declarations>

       

      <mx:Form id="babyQuestionnaire" x="140" y="40" >

           <mx:FormItem width="100%" label="Baby Cleaning Products1">

                <s:RichEditableText 

                     id="babyCleanProd"

                     width="200"

                     height="100"

                     backgroundColor="#ffffff"

                     paddingLeft="4" paddingRight="4" paddingTop="4" paddingBottom="4"

                     color="#222222"

                     />

           </mx:FormItem>

           <mx:FormItem width="100%" label="Baby Products1">

                <s:RichEditableText  id="babyProd"

                         width="200"

                          height="100"

                          backgroundColor="#ffffff"

                          paddingLeft="4" paddingRight="4" paddingTop="4" paddingBottom="4"

                          color="#222222"/>

               </mx:FormItem>

      </mx:Form>

       

      Any solutions? The data persists in the text fields if the forms are all in the same central application but then there's lots of code for each form.

       

      Thanks for your attention.

       

      Kearney