https://github.com/presseddigital/validateit
Supercharged text field validation for Craft CMS
https://github.com/presseddigital/validateit
craftcms fieldtype plugin
Last synced: 5 months ago
JSON representation
Supercharged text field validation for Craft CMS
- Host: GitHub
- URL: https://github.com/presseddigital/validateit
- Owner: presseddigital
- License: other
- Created: 2018-04-07T19:06:37.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-07-18T19:41:15.000Z (almost 2 years ago)
- Last Synced: 2025-10-03T04:37:06.468Z (9 months ago)
- Topics: craftcms, fieldtype, plugin
- Language: PHP
- Homepage:
- Size: 287 KB
- Stars: 12
- Watchers: 4
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Validateit plugin for Craft 3
Supercharged text field validation...
### Requirements
This plugin requires Craft CMS 3.0.0 or later.
### Installation
To install the plugin, follow these steps:
1. Install with Composer via:
composer require fruitstudios/validateit
2. In the Control Panel, go to Settings → Plugins and click the “Install” button for Validateit.
## Validateit Overview
This plugin adds a custom fieldtype which allows you to take control of validation on plain text fields. Validate using the following predefined strings or setup your own custom regex rules. Add custom placeholders and error messages.
1. Email Address
2. URL
3. Phone Number
4. IP Address
5. IPv4 Address
6. IPv6 Address
7. Facebook Link
8. Twitter Link
9. LinkedIn Link
10. Instagram Link
11. Custom Regex Rule
## Configuring Validateit
Once installed, create a new field and choose the Validateit fieldtype. You'll then have the option of configuring how you want to validate the text.

Each field has the option to set a custom placeholder and error message

Custom regex rules allow you to validate any string

## Using Validateit
Use just as you would any native Plain Text field:
{{ entry.validateitFieldHandle }}
## Roadmap
If you have any super useful validation rules shout and we can look to add them to the core plugin for everyone to use.
* [ ] Show default error message and placeholder text in field settings.
Brought to you by [Pressed Digital](https://pressed.digital)