Hints & tips FAQ
Some suggestions for ways to get things done using ChronoForms.


How can I safely show a list of e-mail addresses?

Written by Bob Janes

One ChronoForms user wanted to offer form users a drop-down list of e-mail addresses that they could pick from and send the form results to - but they wanted to do it without putting the email addresses themselves on the form page.

We found a way to do this in two parts. First include the following in your Form HTML:

. . .
Select the recipient you wish to contact:
<select name="recipients">
  <option value="em1">Name 1</option>
  <option value="em2">Name 2</option>
  <option value="em3">Name 3</option>
  . . .
</select>
. . .

Then enter this code in the 'On Submit code - before sending email' field:

<?php
$emails = array('em1'=>'name_1@example.com', 'em2'=>'name_2@example.com', 'em3'=>'name_3@example.com', . . .);
$rows[0]->extraemail = $emails[$_POST['recipients']];
?>

Thanks to deafjoomla.com for this FAQ

80,00% of 10 voters found this FAQ useful,  I found this FAQ  useful useful  not useful not useful


How can I add a refresh button for ImageVerification

Written by Bob Janes
In chronocontact.php look for:
if ( trim($paramsvalues->imagever) == 'Yes' ) {
  $imver = '<input name="chrono_verification" type="text"
    id="chrono_verification" value="">
  <img src="'.$mosConfig_live_site
            .'/components/com_chronocontact/chrono_verification.php">';
}
Replace this with:
if ( trim($paramsvalues->imagever) == 'Yes' ) {
    $imver_url = $mosConfig_live_site
        .'/components/com_chronocontact/chrono_verification.php?imtype='
        .$paramsvalues->imtype;
    $imver = '<script type="text/javascript">
        function RefreshImageVer(imgverform) {
            var randnum = Math.random();
            var newverimage = \''.$imver_url.'\'+randnum;
            imgverform.imgver.src=newverimage;
        }
        </script>
        <input name="chrono_verification" type="text" id="chrono_verification" value="">
            <img src="'.$imver_url.'" name="imgver" id="imgver">
        <input type="button" value="refresh" onclick="RefreshImageVer(this.form);" />';
}
And presto, one refresh button ready to go. Tested in IE7 and Fx2 From notexa on 2007/09/02 02:35
69,23% of 13 voters found this FAQ useful,  I found this FAQ  useful useful  not useful not useful


How can I keep the form data with ImageVerification?

Written by GreyHead
When you use ImageVerification the form data is passed back to the server so that the image code can be validated. This is needed for security reasons. A consequence of this is that, if the code is not valid, the form is re-sent to the browser. ChronoForms will now re-display the form but you need to set up your form html so that any existing values are preserved.
Read more...
93,33% of 15 voters found this FAQ useful,  I found this FAQ  useful useful  not useful not useful


How can I add the date and time to my email?

Written by GreyHead
The simplest way to put the date in is probably to put a hidden field in your form and give it a value of value="<?php echo date(r) ?>" The 'r' is a format code that you can change - see the PHP manual here for different options.
100,00% of 5 voters found this FAQ useful,  I found this FAQ  useful useful  not useful not useful


How can I show a form in a module?

Written by GreyHead

Joomla modules are the small display boxes that you can put on more than one content page.

It is not possible to paste ChronoForms code directly into a module and have it work. However there is a simple work-around that will let you do this.


Read more...
50,00% of 6 voters found this FAQ useful,  I found this FAQ  useful useful  not useful not useful


How can I link to my merchant account?

Written by GreyHead

It's a common requirement for commercial websites to want to link to a payment gateway like 'Authorise.net', or 'PayPal'. The exact way to do this will depend on the gateway specifications but here's a general solution that may give some help.


Read more...
100,00% of 3 voters found this FAQ useful,  I found this FAQ  useful useful  not useful not useful


How can I create a tabbed form?

Written by GreyHead

Here's an example of a very simple Tabbed form implementation in Joomla 1.0.x using the built in tab code. I've just split the parts of the test form across four tabs.


Read more...
100,00% of 2 voters found this FAQ useful,  I found this FAQ  useful useful  not useful not useful


How can I create a dynamic form?

Written by GreyHead
I think I have a solution that you can try, I'm using Peter Paul Koch's Usable Forms script from quirksmode.org (sorry, the forum won't let me post links to the page).
Read more...
100,00% of 2 voters found this FAQ useful,  I found this FAQ  useful useful  not useful not useful



Powered by EasyFAQ © 2006 Joomla-addons.org


equalheight If you have any questions you can post to our forums and we will be glad to help ASAP

Members Login






Lost Password?
No account yet? Register

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for
goods and services provided by ChronoEngine.com

ChronoForms License

equalheightTo be able to continue working at this component we decided to get a small profit out of it but at the same time don't force everybody to pay in order to use this great component.

 

 From version 1.5 and up a link at the bottom of everyform created will be placed, saying "joomla professional work", the link will be to us here htttp://www.chronoengine.com, its illegal to remove this link from the source code unless you have a license,

so the license is very simply for the same ChronoForms component without a link, thats all!

This License is for 5 different websites ONLY. 

 

 However, in order to allow everybody to still use the component and even get out of this, the link is inside a div with class : chronoform , use this to hide the link by using different colors or whatever if you really can't pay, but of course the link is still exists at your page source.

 

The license is ONLY 25$ can be bought here :

 

Thank you!

 

ChronoEngine.com Team 

Joomla Templates and Joomla Tutorials