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.
Fund package maintenance!
cliffparnitzky
Installs: 4 161
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 3
Forks: 0
Open Issues: 3
Type:contao-module
Requires
- php: >=5.3
- contao-community-alliance/composer-plugin: ~2.4 || ~3.0
- contao/core-bundle: ~3.2 || ~4.4
- menatwork/contao-multicolumnwizard: ~3.3
Conflicts
- contao/core: 3.4.0,3.4.1,3.4.2
Replaces
- contao-legacy/dependentmandatoryformfield: *
README
Contao Extension: FormDependentMandatoryField
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.
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 >= 3.2.0 ... < 3.6.0
- Contao version >= 4.4.0
Dependency
This extension is dependent on the following extensions:
Screenshot
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: