We want our users to be able to print out their form. Is there a way to do that?

Yes, there is.

First, on the form properties screen, make sure that the INCLUDE SUBMIT BUTTON option is set to

NO, and then click on SAVE PROPERTIES.

Now you need to create a summary page for your form. If you don't know how to do that, please see the section How To Create a Form Summary.

Once you have added all of your summarize elements, create a new element with the following properties:

 

Type: Submit Button

Label: Print

Name: PrintButton

Value: Print Page

 

Click on the SAVE PROPERTIES button, and then go to the Advanced tab. Scroll down to the ACTIONSCRIPT section of the page, and add the following settings:

Type: Custom

Actions: Click (should be CHECKED)

Click on the words CREATE CODE FRAMEWORK. An alert will appear that says:

Create code framework for action now?

(Existing code will be appended)

Click on OK.

Look for this line:

 

case 'click':

 

Add a new line UNDERNEATH that line, as follows:

 

window.print();

 

So the code framework should look like this:

 

function ff_PrintButton_action(element, action)
{
     switch (action)
     {
          case 'click':
          window.print();
          break;
          default:;
     } // switch
} // ff_PrintButton_action

 

Click on SAVE PROPERTIES to save the element, and then click on the SAVE icon in the upper right-hand corner of the screen to save the form itself.

Now you need to add a SUBMIT button to the form. To do so, create a new element with the following properties:

Type: Submit Button

Label: Submit

Name: submitButton

Value: Submit

 

Click on the SAVE PROPERTIES button, and then go to the Advanced tab. Scroll down to the ACTIONSCRIPT section of the page, and add the following settings:

Type: Library

Actions: Click (should be CHECKED)

Script: FF::ff_validate_submit

Click on SAVE PROPERTIES to save the element, and then click on the SAVE icon in the upper right-hand corner of the screen to save the form itself.

You should now see two buttons on your form: one to print, and one to submit. Go ahead, give it atry and test your form! If you've done everything right, a print window should appear when you click on the print button, and once you say OK to print, a print dialog box should appear.

 

 

 

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!