定制 cliffparnitzky/form-dependent-mandatory-field 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

cliffparnitzky/form-dependent-mandatory-field

最新稳定版本:3.0.1

Composer 安装命令:

composer require cliffparnitzky/form-dependent-mandatory-field

包简介

Provides an additional option for form field to be defined as dependent mandatory. Field is mandatory if another field (or more) is filled / or not.

README 文档

README

Latest Version on Packagist Installations via composer per month Installations via composer total

Contao Extension: FormDependentMandatoryField

Provides an additional option for form fields to be defined as dependent mandatory. Field is mandatory, if another field (or more) is filled / or not / has a special value.

This special validation is executed server side and only available for forms with submission method POST (there are no settings in form fields for forms with GET).

Installation

Install the extension via composer: cliffparnitzky/form-dependent-mandatory-field.

If you prefer to install it manually, download the latest release here: https://github.com/cliffparnitzky/FormDependentMandatoryField/releases

Tracker

https://github.com/cliffparnitzky/FormDependentMandatoryField/issues

Compatibility

  • Contao version >= 5.3.0

Dependency

This extension is dependent on the following extensions:

Screenshots

Screenshot 1 Screenshot 2

Additional information

CSS Tip

Adding special CSS, will show the difference between mandatory and dependent mandatory form fields.

This is only an example:

label.dependent.mandatory:after {
	content: '(*)';
	font-size: 9px;
	vertical-align: super;
	color: #FF7777;
}

With the CSS above, a form like the following will be created:

Screenshot 3

Thank you

  • e-spin Berlin - Ingolf Steinhardt (zonky2) for the support of development
  • Contao Academy - Christian Feneberg (contaoacademy) for the support of development
  • leycom - media solutions - Ralph Leyendecker (leycommediasolutions) for the support of development

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2015-02-25