I'm trying to get the Cforms demo to pass all the form field values to the success pipeline, but I don't know the syntax of the registration.js file. I have added what is intended to be a second definition to the var viewData command, but it has no effect, and I don't know what delimiter should be used between definitions, or if the command should be constructed differently if you want more than one definition:

--------------------------------------------------------------------------
cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/Form.js");

function registration() {
    var form = new Form("registration_definition.xml");

    form.showForm("registration-display-pipeline");

    var viewData = { "username" : form.getChild("name").getValue()
                     "date" : form.getChild("date").getValue() }
    cocoon.sendPage("registration-success-pipeline", viewData);
}
--------------------------------------------------------------------------

Incidentally, the original var viewData line did not end with a semicolon. Should it?

///Peter




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to