...
Code Block |
---|
The following form variables were received on the server: FirstName: Clive LastName: Cussler NickName: Don NickName: Jake Avatar: _Z2K34XGaEeCyb6YlFcJk2w task.perform.url: http://localhost:8080/frevvo/web/tn/ashish.com/user/designer/app/_inGScVb1EeCECYU1QrNy9g/formtype/_y_X5UHGMEeCyb6YlFcJk2w/popupform?_submission=53eb5c01-7d99-4ab5-b5a4-191f52d66b0a task.perform.url.embed: http://localhost:8080/frevvo/web/tn/ashish.com/user/designer/app/_inGScVb1EeCECYU1QrNy9g/formtype/_y_X5UHGMEeCyb6YlFcJk2w?embed=true&_method=POST&_submission=53eb5c01-7d99-4ab5-b5a4-191f52d66b0a frevvo.submission.id: 53eb5c01-7d99-4ab5-b5a4-191f52d66b0a frevvo.form.id: _Xzz-kHGaEeCyb6YlFcJk2w The following attachments were received on the server: form: form: text/xml; charset=utf-8: 210 Avatar: globe.jpg: image/jpeg;filename="globe.jpg";frevvo-attachment=true; charset=utf-8: 17168 Example Form.pdf: Example Form.pdf: applicationproject/pdf;frevvo-snapshot=true; charset=utf-8: 11107 |
...
- All attachments will contain 'frevvo-attachment=true' in the content type.
- A snapshot (PDF, TIFF ...) will contain 'frevvo-snapshot=true' in the content type.
- Any other attachment is an XML document from the form (there could be more than one for advanced forms).
- The form variables section contains the actual form data (FirstName, LastName and Avatar in our example) plus some additional fields like the submission ID, form ID and task perform URLs. In most cases, you can ignore these fields. They are intended for advanced uses such as post-processing the submission from the repository using the frevvo API.
- Repeating fields simply appear twice.
Processing the POST data no attachments (
...
project/x-www-form-urlencoded)
Warning |
---|
Note that this is not currently available as a Form Action, which means you will need to separately set a Form Action to control what the user sees. |
Instead of multipart/form-data content, frevvo can also be configured to send data using the more traditional applicationproject/x-www-form-urlencoded content type. In this mode, attachments cannot be sent since attachments require multiple parts.
...
To access the fields, your web server code must process applicationproject/x-www-form-urlencoded. The actual code depends on the language (Java, PHP, C# ...) that your code uses and you can find several examples on the Internet. The snippet below shows an example using a Java Servlet that will simply echo the form variables to the screen.
...