This is a simple module to add an Enquiry Page pagetype to the CMS. The module uses
optional JavaScript form validation, so no requirements for third-party JavaScript
libraries (ie: jQuery or MooTools). The enquiry form can be configured to add & order
your own fields, including the following types:
A randomly-generated captcha image can be easily enabled in the form via the CMS. By
default it will produce a 4-digit image 60x30px with an input field next to it. If
you wish to change the height of the image (eg: to match boostrap input styling), you
can configure this in your YAML:
Axllent\EnquiryPage\EnquiryPage:
captcha_img_height: 35
Please note that the height should be no less than 20 (else the numbers may not be displayed properly).
If you use web services that dynamically change the REMOTE_ADDR
field (most notably
CloudFlare) you can configure another field, e.g.:
Axllent\EnquiryPage\EnquiryPage:
# Try $_SERVER['HTTP_CF_CONNECTING_IP'] (CloudFlare custom field) before
# $_SERVER['REMOTE_ADDR'], so it will work with and without CloudFlare
client_ip_fields:
- HTTP_CF_CONNECTING_IP
- REMOTE_ADDR
If required, you can disable the client IP retrieval entirely by unsetting that option.
If you wish to turn on the built-in JavaScript validation, then this can be added to your
site's YAML config:
Axllent\EnquiryPage\EnquiryPage:
js_validation: true
composer require axllent/silverstripe-enquiry-page
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem