承接 thewebmen/silverstripe-formbuilder 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thewebmen/silverstripe-formbuilder

最新稳定版本:1.2.4

Composer 安装命令:

composer require thewebmen/silverstripe-formbuilder

包简介

Silverstripe formbuilder to create forms in the cms

README 文档

README

Introduction

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

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.

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.

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.

Spam protection

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

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).

You can configure a field like this:

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'

统计信息

  • 总下载量: 3.2k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 11
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2017-12-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固