The complete description of all sections, parameters, and tags can be found in the separate technical documentation for INQUIRY4. This page guides you through the integration and points out the places where, in our experience, things tend to go wrong.
What a form consists of
An INQUIRY consists of at least three parts. Others are optional.Before you start
These questions determine which template set you choose and how many templates you need:- Which input fields should be requested, and which of them are required?
- Which spam protection should apply?
- Should the customer receive an email after submission?
- Should the shop operator receive an email?
- Is a response as a PDF needed?
Step 1: Create the configuration in the Online Service Area
Each form needs its own configuration. It lives in the Online Service Area, not in the template directory.- In the Online Service Area, open your shop’s configuration.
- Switch to the “Formulare (Inquiry)” tab and select the subshop in the name list.
- Click the document icon next to the subshop name.
- In the “Neue Konfiguration erstellen” dialog, enter a name, for example
anfrage, and click “Erstellen”. - Click the new name in the navigation on the left and “Bearbeiten” on the right.
- Adjust the sections and save.
- Activate the configuration.
The file extension is always
config and is appended automatically. You only enter the name.Choose a meaningful name, because it will appear later in the form call. With several forms using different spam protection, a name like
anfrage_captcha helps.Step 2: Select the templates
Take a set from the Materials and proceed as follows for each template you need:- In the Materials, open the folder of the desired set.
- Save the template with the
.htmextension under the specified name in your template directory, for examplebenutzer/templates/translation.
Step 3: Edit the templates
The saved templates can be used directly or adapted to your design with an HTML editor. One rule overrides everything else.INQUIRY tags and shop tags are not the same
INQUIRY is a separate program with its own tags. The names are similar, but the suffixes differ.
This is what the same field looks like in both places. In the shop, for example on
ws_address_combined.htm:
As a single tag,
A-<Name>_error outputs the string _error in case of an error and nothing otherwise. The tag is therefore intended as a suffix to a class name, for example class="feld~A-FirstName_error~".Prefilling fields for logged-in customers
If the form is included on a shop page viaWS-ExternInclude(), all shop tags are additionally available in the form template. This allows you to prefill a field for logged-in customers: you keep the INQUIRY tag for the name and use the shop tag for the value.
For the shop tag to return a value, the address field must be activated in the
AddressFields-Txt section of shop.config.Select lists
For salutation, title, and country, there is only one tag each in the form, which generates the complete list.Step 4: Add the call
Place a link to the inquiry template anywhere in the shop.WS-ExternInclude(). Only this way are the shop tags also available in the form.
Spam protection
Forms on the web are scanned and filled out automatically by programs. INQUIRY4 provides several countermeasures that can be combined.Captcha
A captcha poses a task that cannot be solved by machine, or only with great effort. INQUIRY4 supports these methods:The arithmetic task is the only method that works without a third-party service. All others transmit data to the respective provider and therefore require a data protection assessment. Friendly Captcha and captcha.eu are usually the simpler cases here compared to reCAPTCHA.
Other measures
In addition to the captcha, INQUIRY4 checks the input further:Honeypot fields cost the visitor nothing and catch a good share of simple spam programs. They therefore make sense even if you already use a captcha.
Forms with file upload
In combination with the WEBSALE upload module, customers can upload any files with an inquiry or registration. Guide: Upload module for forms with INQUIRYPerformance requirements
INQUIRY4 is a separate program on the server, so calling it consumes computing power and is billed via the performance units.If you include a form in a shop page via
WS-ExternInclude(), two programs run: the shop and INQUIRY. This consumes correspondingly more and slightly increases the page’s processing time. For a contact form, this is negligible. For a form that is included on every product page, it is worth keeping an eye on.Related topics
- Guide: Reload and submit forms via AJAX
- Guide: Template types: Inquiry templates
- Guide: AJAX functions
- Materials: Materials for INQUIRY
