We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 47742
    • 13 Posts
    I love jsonFormBuilder, but I'm trying to figure out how to use it for functions other than emailing. If I use it in a chunk, it works great with validation and redirecting. Now I need it to redirect to another page and pass the data collected from the form. How do I pass the data to the redirected page (which uses another chunk)? Below is what I currently have, which doesn't work:

    Form Chunk
    [[!JsonFormBuilder-fromJSON? &json=`

    {
    "id": "TestPreviewForm",
    "redirectDocument": "36",
    "jqueryValidation":true,
    "placeholderJavascript":"JsonFormBuilder_myForm",
    "SubmitVar":{"albumName": "[[+postVal.name_full]]"},

    "elements": [
    {"element":"text", "id":"name_full", "label":"Name", "extraClasses":["half"], "extraElementAttribs":{"placeholder":"Enter your name","class":"custom-class"}, "rules":["required"] },
    {"element":"text", "id":"email_address", "label":"Email Address", "extraClasses":["half"], "extraElementAttribs":{"placeholder":"Enter your email","class":"custom-class"}, "rules":["required","email"] },
    {"element":"textArea", "id":"notes", "label":"Comments", "rows":5, "columns":30, "rules":["required"]},
    {"element":"button", "id":"submit", "label":"Submit From", "type":"Submit"}
    ]
    }

    `]]

    Redirected Chunk
    [[*content]]
    [[*albumName]]

    This question has been answered by designihs. See the first response.

    • discuss.answer
      • 47742
      • 13 Posts
      Instead of redirecting to another page, I just returned a call to a chunk with the parameter using the results from the form. It works slick!