...
The Form action for this form is set to the URI template: http://<hostname>/frevvo/web/user/gallery/app/_73zHwep_EduZgK0BUzi1Ug/formtype/__AKE4PgqEdusGKt5_HoCDw?_method=POST&customer={ID}. As described in the [[#Multi_page_forms|Multi Page Forms]] section above, when the user clicks submit, the URI template above will be resolved based on the selected customer ID and the browser will be redirected to the resulting URI, which is simply that of the next form with a query parameter (customer=02, for example). This form is described below.
Customer Information
This form is described in the [[#Updating_a_document|Updating a document]] section above. It GETs the XML representation for a specific customer using the third method in the table above, initializes the form with that information and displays it to the user. When submitted, the updated customer information is automaticlly PUT to the same [resolved] URI using the fourth method in the table above.
Create Customer'''
This form is described in the [[#Creating_a_new_document|Creating a new document]] section above. When instantiated, it does a POST to the Read URI using the second method in the table above. This causes the server to create a new customer and return the URI of that customer. frevvo will automatically follow this URI, GET the representation of the customer and display the form (presumably with empty values). When the user enters all required fields and submits the form, frevvo will automatically PUT the resulting XML document to the URI for the newly created customer thereby updating the customer.
...
In your browser, go to: http://<server-name>[:port]/pve/test. You should see a message "Your PVE Connector request was successfully handled." This means the connector is properly installed.
====
Live Forms V4
...
A Doc Action Wizard steps you thru the process of connecting your form to PaperVision.
[[image:DocActionPVE.png]]
#
- Enter your PaperVision/ImageSilo entity, username and password and click the login button
...
- The wizard connects to your account and now displays a dropdown with all your PaperVision/ImageSilo projects
...
- Select the project where you want to save the form submission
...
- Select the image type: PDF, TIFF, JPG, or PNG. # Select if you want to store the xml data document in addition to the form image document
...
- Click Next
For Live Forms In-house users, if the TIFF option doesn't appear you have not yet installed the TIFF software into your frevvo installation.
[[image:DocActionPVE2.png]]
#
- The wizard connects to your selected project and retrieves the list of key index fields from PaperVision/ImageSilo
...
- Map each PaperVision/ImageSilo key index field to a field on your frevvo form. The dropdown contains a list of all the form fields listed by field name (not field label).
...
- Click Finish
Your form is now connected to PaperVision/ImageSilo. When you use your form and click the submit button the form image, any attachments and the xml document (if you selected that in the doc action wizard) will be saved into your PaperVision/ImageSilo project.
===
Google Connector
...
frevvo Live Forms supports direct connectivity with Google Documents and Spreadsheets. The Google Connector allows you to: #
- Save submissions to Google Spreadsheets
...
- Read data from Google Spreadsheets
...
- Update data in a Google Spreadsheet (v4.1.5)
...
- Store form submissions directly into your Google Apps account.
...
- Format emails or confirmation receipts using an online Google Document; and store form submissions directly into your Google Apps account.
See [[V4 Connecting to Google | Connecting to Google]] for details.===
Integrating with your
...
database
frevvo provides a simple connector that integrates forms with your database. The connector is freely available for download and is licensed under an open source model. The documentation can be found at [[V4_Database_Connector|Connecting with your database]].===
Integrating with HTTP Servers (including handling attachments)
...
frevvo can POST form or workflow data to your web server for processing. There are two options available [[V4_Designing_Forms#Post_Data_then_Forward_to_Web_Page | Form Action POST]] and [[V4_Designing_Forms#Post_Data | Doc Action POST]]. The difference between the two is that the Form Action POST displays the response from the web server to the user whereas the Doc Action POST does not.
Processing form data POSTed to your web server is [[Process_Submissions_Tutorial#POST_to_your_web_server | detailed in this Tutorial]].===
Initializing forms with XML documents
...
Forms can be initialized by an XML document. This is most commonly done when the form is created from an XSD data source but can also be used with forms create from frevvo's palette controls. The most common method is to connect the XML document to the form via the form's doc action manually set [[V4_Designing_Forms#Doc_URI_Wizards | document URIs wizard]].====
XML document from Doc URI
...
The form designer ensure the XML document used to initialize the form conforms is valid for the XSD schema used to create the form. If the XML document is invalid your form will fail to initialize and will display the message "There were problems initializing form".
One example of an invalid XML document is when the XSD contains a repeating element. If minOccurs=3 and the XML document contains only 2 elements then the document is invalid and your form will display the standard error message.[[Image:18px-Attention_niels_epting.svg.png]] '''NOTE:''' The
Warning |
---|
The XML document must also use UTF-8 format encoding. |
...
XML document from Post payload
...
In addition chaining multipe forms together via the Form Action Post with common data sources from XSD as described above, it is also possible to write a servlet or other web code that does a Post request with a form Url to the frevvo Form Server. This request can also be coded to contain an XML document. If the XML document conforms to and is in the same namespace as one of the form's documents (either from-scratch palette controls or from XSD schema datasource), then the Form Server will use that XML document to initialize the form's fields.=== Custom JavaScript=== <div style=";background-color:#E0EFFF">[[Image:Lightbulb.png]] Although
Custom JavaScript
Info |
---|
Although themes are primarily used to customize look and feel, you can also provide custom JavaScript in a theme. Make sure that you have read and understood the section on [[V4_Customizing_Themes|customizing themes]]. |
...
<div style="font-weight:bold;background-color:#63ffc7">[[Image:Lightbulb.png]] We strongly recommend that you are familiar with a JavaScript debugger / web development tool such as the Firebug extension for Firefox.</div>
...