2017 © Pedro Peláez
 

silverstripe-vendormodule silverstripe-formbuilder

Silverstripe formbuilder to create forms in the cms

image

thewebmen/silverstripe-formbuilder

Silverstripe formbuilder to create forms in the cms

  • Tuesday, May 22, 2018
  • by michelsteege
  • Repository
  • 3 Watchers
  • 1 Stars
  • 164 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 12 Versions
  • 113 % Grown

The README.md

SilverStripe Formbuilder

Introduction

Create basic forms in the CMS this module is intendended as light weight variant of the https://github.com/silverstripe/silverstripe-userforms module, (*1)

Requirements

  • SilverStripe CMS ^4.0

Installation

composer require "thewebmen/silverstripe-formbuilder" "dev-master"

Then add the "TheWebmen\Formbuilder\Extensions\FormbuilderExtension" extension the desired page type., (*2)

Custom after form handling

A form message is displayed after a successful form submission you can add custom logic to successful submissions by adding a method called "handleFormbuilderForm" to the page with the formbuilder extension, this method receives the form, the data and the submission., (*3)

public function handleFormbuilderForm($form, $data, $submission){
    //Your logic here
}

This can be used to redirect users to a success page, this method is called after saving the submission and sending the emails., (*4)

Spam protection

If the https://github.com/silverstripe/silverstripe-spamprotection module is installed then the form will add a spam protection field automatically, (*5)

The ModelDropdownfieldField type

There has been added a new input type called "Model Dropdownfield" which gives you the ability to fill a dropdown based on a dataobject model. One of the abilities you'll gain while using this input type, is the ability to link two dropdown/select items (eg. a province dropdown that updates another dropdown with cities from the selected province)., (*6)

You can configure a field like this:, (*7)

TheWebmen\Formbuilder\Fields\ModelDropdownField:
  models:
    - DataObjects\ModelDropdown\Provinces:
        class: 'DataObjects\ModelDropdown\Provinces'
        key: 'ID'
        value: 'Name'
        relation:
          relation: 'Locations'
          title: 'Vestiging'
          linked_by: 'ProvinceID'
          class: 'DataObjects\ModelDropdown\Locations'
          key: 'Code'
          value: 'Name'

The Versions

22/05 2018

dev-master

9999999-dev

Silverstripe formbuilder to create forms in the cms

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Michel van der Steege

cms silverstripe forms builder

22/05 2018

1.0.8

1.0.8.0

Silverstripe formbuilder to create forms in the cms

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Michel van der Steege

cms silverstripe forms builder

06/05 2018

1.0.7

1.0.7.0

Silverstripe formbuilder to create forms in the cms

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Michel van der Steege

cms silverstripe forms builder

03/05 2018

1.0.6

1.0.6.0

Silverstripe formbuilder to create forms in the cms

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Michel van der Steege

cms silverstripe forms builder

22/03 2018

1.0.5

1.0.5.0

Silverstripe formbuilder to create forms in the cms

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Michel van der Steege

cms silverstripe forms builder

22/03 2018

1.0.4

1.0.4.0

Silverstripe formbuilder to create forms in the cms

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Michel van der Steege

cms silverstripe forms builder

22/03 2018

1.0.3

1.0.3.0

Silverstripe formbuilder to create forms in the cms

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Michel van der Steege

cms silverstripe forms builder

22/03 2018

1.0.2

1.0.2.0

Silverstripe formbuilder to create forms in the cms

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Michel van der Steege

cms silverstripe forms builder

05/01 2018

1.0.1

1.0.1.0

Silverstripe formbuilder to create forms in the cms

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Michel van der Steege

cms silverstripe forms builder

07/12 2017

1.0.0

1.0.0.0

Silverstripe formbuilder to create forms in the cms

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Michel van der Steege

cms silverstripe forms builder

05/12 2017

0.0.2

0.0.2.0

Silverstripe formbuilder to create forms in the cms

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Michel van der Steege

cms silverstripe forms builder

05/12 2017

0.0.1

0.0.1.0

Silverstripe formbuilder to create forms in the cms

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Michel van der Steege

cms silverstripe forms builder