Presto Content Management System
Presto Forms

<- ->

Documentation > Presto Developer's Manual > Under The Hood
A) First, we need to instruct Presto to allow a form to be placed under a certain page in your website
We usually have to create a "rule" that allows this.   
 
1) In the Explore tab, navigate to the page under which a form is to be created or moved, and click on it 
2) Select "Properties" tab.
3) In "Rules" field, if you don't see "Form", then click on "Add" button. 
4) A popup report will occur with a "rules" field in it that has a table of items (These items are the names of all the available forms for working on the different types of content in Presto).  The first series of items have blank names, but further down, you will see an item called "Form".  Select this, and press the "Select" button above the table you just made your selection in. 
- We should now be back in the main Presto "Properties" tab, with the "Form" item highlighted in the rules area.
- Now press the "Save" button, to keep this change.
 
 
B) Create or drag and drop a form under a page
To create a new form under a particular page,
 
1) Navigate to that page in the Explore tab, and click on it (we will already be at this point if you have performed step A above). 
2) Press the "Create" button on Page Tools.
3) You will see a popup window titled 'Create new item under "[name of currently selected Presto page]"
4) Under this, you should see a "Create Form" link.  Click on it.  If it isn't there, then some part of step A above has not been completed.
5) You should be delivered back to the main Presto window Content area, where you will see an empty form that contains all the fields for setting up a new form in Presto.  (At this point the Page Tools status area should show: "Under above item, create new FORM" for about 10 seconds.)
- Enter the form's name in the "name" field.  You will likely want this name to appear in the website menu hierarchy.
- The "version" field is optional, but you can give your own version number to a form if you want. (e.g. 1 or 1.1 or 2 etc).
- The "database table" field determines if this form manages records in the Presto database.  For forms that simply mail their contents, this field should be left empty.  If a table (type of content) is selected in it, then a Presto Programmer may need to be involved in setting this up.
- The "file log type","log to database","incremental log", are rarely used options for logging the form contents into a text file or XML data file in Presto.  A Presto programmer is required to verify their operation.
- In the public website display of a form, the "description" field will be shown at the top of a form by default.
- Various form tag attributes are included to enable a form to be sent elsewhere on the internet for processing, to enable it to have different looks, or to have it appear in a popup.
- The "form field naming" field controls whether the form's fields use names you establish for them, or whether the fields use Presto-coded names.  This doesn't affect the display of form field labels and data, but it does control the naming of form field data sent back to the receiving server or process.
- The "javascript" field is a place to put any custom javascript functions (without encompassing <script ...> tags) that the form uses.
- The "thanks" field will be displayed to users on successful completion of a form.
- The remaining fields are currently used by Presto programmers in certain situations for custom modification of a form's contents, and entry of form contents into a database. 
6) Press "Save" to save your form.
7) Now that you have created a new form, you will probably want to remove the special rule that allowed this form to be created under its parent page, so that we can get the default sub-page creation options back for that page.  To do this, navigate to that page, click "Properties", deselect the "Form" option in the rules field, and press "Save".
 
C) Create new form fields, or drag and drop fields into a form
Various form fields can be created from scratch; as well they can be dragged & dropped from existing forms.  The tutorial will focus on this.
 
D) Enabling emailing of a form
There is an example template to look at for this at page 1616.

<- ->

Valid XHTML 1.0!