Zum Inhalt springen

Formhandler - moving data from one form to another

Erstellt am 8. August 2012 · Noch keine Antworten

Tags: Frage, English

adrian_m ·

First of all - I'm sorry for the masage in English but I do not know German #paralyzed#

I try to copying (moving) data from one form to another by session. In manual i found this example:

In start form:

finishers {

    # Finisher_Redirect will redirect the user to another page after the form was submitted successfully.
    1.class = Finisher_Redirect
    1.config {
            redirectPage = {$formhandlerExamples.multistep-forms.rent-a-car-first-step.redirectPage}
        }

    2.class = Tx_Formhandler_Finisher_DB
    2.config {
    table = tt_content
    key = uid
    fields {
        # Retrieves data from the GET / POST parameters
        field_1 {
            mapping = TEXT
            mapping.data = GPvar:formhandler|field_1
        }
    }
  }
    }

In second form:

preProcessors {
    1.class = Tx_Formhandler_PreProcessor_LoadGetPost
    2.class = Tx_Formhandler_PreProcessor_LoadDefaultValues
    2.config {
            1 {
        field_1.defaultValue.data = GPvar:formhandler|field_1
            }
        }
    }

And nothing happens. Do I missed something?

I will be greatefuul for any help!

Regards,
Adrian