- Template Sets
- Default form field values
Taking a form offline
- How to take a form offline
- Scheduling a time for a form to be taken offline
- People in middle of putting through submissions when a form goes offline
- Customizing the default Form Offline page content
You can take any of your published forms offline whenever you want. You can do this through two methods:
- Delete the published form.
- Mark the published form as offline.
The first method generally isn't a good idea. Any pages that link to your form page will need to be updated to remove the link, otherwise they'll result in a 404 (page not found) error for anyone that clicks on it. Since search engines may well have catalogued the form URL, removing all the links on your site may still not be enough to prevent errors. However, if you do prefer this method, just go to your Edit Form » Publish tab and click the "x" for the published form that you wish to delete. Done!
The second method - marking the form as offline - leaves the page on your website, but changes the content to show a (customizable) "Form offline!" message. The following sections on this page explains everything you need to know about taking a form offline.
How to take a form offline
To take your form offline, just uncheck the "Is Online" checkbox in the "MAIN SETTINGS" panel, then click the "Apply Changes" button to see how it looks. The Form Builder will then refresh the page to show you how the offline form page looks.
- Form doesn't appear to go offline immediately? Read the section on People in middle of putting through submissions when a form goes offline to explain why.
- Customizing the Form Offline page
Scheduling a time for a form to be taken offline
- First, open up the Form Builder window for your published form (Edit Form » Publish tab and click the edit icon for the published form).
- In the window, click on the "OTHER SETTINGS" panel in the left sidebar. There, enter a date and time in the "Automatically take form offline on" field.
- Click the "SAVE" button and close the Form Builder window.
Your form is now scheduled to go offline at the time specified. To confirm that there's no problem with the server timezone offsets (see below), return to the Edit Form » Publish tab and refresh the page. All published forms that are scheduled to be taken offline will show a clock icon in the "Online" column (see screenshot to the right). When you click on the clock, a dialog window will appear showing the current date and time and when the form is slated to go offline. If the dates appear to be incorrect, you'll need to tweak your server timezone!Server Timezone Offsets
The Form Builder takes into account your server timezone offset through the setting on the Settings » Accounts tab. On that page, choose the appropriate value from the "System Timezone Offset" dropdown. To ensure there's no confusion, each option in the dropdown shows the appropriate time for that offset value, so all you need to do is find the offset value that matches the time in your own location.
See the screenshot to the right to see where the setting is located and what it looks like.
People in middle of putting through submissions when a form goes offline
To ward against this, by default the Form Builder will permit everyone already in the process of putting through a submission to finish their submission. So, anyone who has already started the form (i.e. have at least the first page opened in their browser) will be able to continue.
However, this may not be what you want. If you want to immediately cut off all submissions, do the following:
- Log into Form Tools as an administrator and go to the Modules page.
- Select the Form Builder module.
- Click on the "Settings" link in the module navigation at the top left
- Click on the "Offline Forms" tab.
- For the "Offline Form Behaviour" setting, select the "Immediately prevent all submissions" option.
Tip: when you're first creating and testing out your published form, you may want to clear out the sessions and reset it to page 1. To do this, just append ?clear to the end of your form name, e.g. yourformname.php?clear. This will completely clear out any memory for the current form and show you what a new user will see when first going to your form.
Customizing the default Form Offline page content
In the left sidebar, click the "FORM OFFLINE PAGE CONTENT" section to expand the contents. There, you will see a single textarea where you can customize what the users will see in that page. Since this window is quite small, you may want to click on the "edit full screen" link that appears at the bottom. That will open up a dialog window as shown in the screenshot to the right, where you can edit the content in full screen mode.
You need to enter HTML here. Anything you enter will be outputted directly into the webpage.