Download Breezing Forms User Manual

Transcript
Users Guide
Crosstec/Breezing Forms
First, create a hidden field in your form with the following properties:
Type: hidden input
Label: Referring URL (or whatever you want to call it)
Name: page
Click on SAVE PROPERTIES to save the element data, and then click on the SAVE icon in the
upper right-hand corner of the screen to save the form with the new element.
Then, within your form's properties, go to Advanced > More Options. Then click on the FORM
PIECES tab at the top of the popup screen.
In the first section (BEFORE FORM), click on the CUSTOM button. In the field that opens up
underneath that, enter this code:
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"
].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
$this->execPieceByName('ff_InitLib');
ff_setValue('page', $pageURL); // 'page' is the name of the hidd
en field
Then click on the SAVE icon in the lower right-hand corner of the
screen to save the piece that you just added.
When back on the form properties page, click on the SAVE icon in the upper right-hand corner
of the screen to save the form itself.
Calendar: How to Insert Today's Date
How do I insert today's date in the calendar field?
Place this code in the calendar element's VALUE field:
Code
<?php return date("m/d/Y") ?>
If you don't want it to be editable, check the READ ONLY checkbox on
the Advanced tab. You could also use this code in a hidden field.
109