2017 © Pedro Peláez
 

silverstripe-module silverstripe-termsandconditionscheckboxfield

Terms and conditions checkbox field for SilverStripe

image

burnbright/silverstripe-termsandconditionscheckboxfield

Terms and conditions checkbox field for SilverStripe

  • Sunday, April 2, 2017
  • by jedateach
  • Repository
  • 0 Watchers
  • 1 Stars
  • 60 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Terms And Conditions Checkbox Field

A checkbox field (with optional page link) that must be checked for form validation to succeed., (*1)

Usage

// when building a Form's fields
$fields->push(
    TermsAndConditionsCheckboxField::create()
        ->setTermsPage(SiteTree::get_by_link("terms-and-conditions"));
);

Customise message

Either set the field's Title, or update lang file:, (*2)

en:
  TermsAndConditionsCheckboxField:
    PageLinkContent: "I agree to the <a href=\"{TermsPageLink}\" target=\"new\" title=\"Read the terms and conditions for this site\">{TermsPageTitle}</a>."

The Versions

02/04 2017

dev-master

9999999-dev

Terms and conditions checkbox field for SilverStripe

  Sources   Download

MIT

The Requires