Download the PHP package plasticstudio/silverstripe-formhelper without Composer
On this page you can find all versions of the php package plasticstudio/silverstripe-formhelper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download plasticstudio/silverstripe-formhelper
More information about plasticstudio/silverstripe-formhelper
Files in plasticstudio/silverstripe-formhelper
Package silverstripe-formhelper
Short Description Heyday's SilverStripe form helper
License BSD-3-Clause
Homepage https://github.com/PlasticStudio/heyday-legacy-silverstripe-formhelper
Informations about the package silverstripe-formhelper
silverstripe-formhelper
This is a copy of the heyday/silverstripe-formhelper
module which is unable to be found
Heyday's SilverStripe Form Helper
The idea is that primarily this module provides reusable form fields of a slightly more complex nature including validation and to avoid redesigning and rebuilding each time.
For starters, this is going to include the following.
AddressField for auto completing addresses using Google's autocomplete API
The following JS is needed:
You can choose to limit autocomplete to NZ by passing the following option when instantiating the field:
You set the Fields as following:
where the value of the Array is the field you want from Google autocomplete. The following fields are available:
autocomplete
- Your auto-complete fieldsuburb
city
state
postalCode
streetNumber
street
streetAndNumber
- a concatenation of street number and street
Recaptcha Field
Using ReCaptcha V2.
You need to set the RECAPTCHA_SITE_KEY
and RECAPTCHA_SECRET
environment variables.
To do so you can edit the .env file in your SilverStripe project.
and usage:
See https://www.google.com/recaptcha/admin to retrieve your keys.